@olympeio/runtime-web 9.10.3 → 9.10.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.js
CHANGED
|
@@ -249,14 +249,14 @@ ea('Object.fromEntries',function(a){return a?a:function(b){var c={};if(!(Symbol.
|
|
|
249
249
|
ea('Promise.prototype.finally',function(a){return a?a:function(b){return this.then(function(c){return Promise.resolve(b()).then(function(){return c})},function(c){return Promise.resolve(b()).then(function(){throw c;})})}});function za(a){if(null==a)throw new TypeError("The 'this' value for String.prototype.padStart must not be null or undefined");return a+''}function Aa(a,b){a=void 0!==a?String(a):' ';return 0<b&&a?a.repeat(Math.ceil(b/a.length)).substring(0,b):''}
|
|
250
250
|
ea('String.prototype.padStart',function(a){return a?a:function(b,c){var d=za(this);return Aa(c,b-d.length)+d}});ea('String.prototype.padEnd',function(a){return a?a:function(b,c){var d=za(this);return d+Aa(c,b-d.length)}});ea('Object.values',function(a){return a?a:function(b){var c=[],d;for(d in b)Object.prototype.hasOwnProperty.call(b,d)&&c.push(b[d]);return c}});
|
|
251
251
|
ea('Array.prototype.flatMap',function(a){return a?a:function(b,c){for(var d=[],e=0;e<this.length;e++){var f=b.call(c,this[e],e,this);Array.isArray(f)?d.push.apply(d,f):d.push(f)}return d}});ea('Array.prototype.flat',function(a){return a?a:function(b){b=void 0===b?1:b;for(var c=[],d=0;d<this.length;d++){var e=this[d];Array.isArray(e)&&0<b?(e=Array.prototype.flat.call(e,b-1),c.push.apply(c,e)):c.push(e)}return c}});
|
|
252
|
-
ea('Promise.allSettled',function(a){function b(d){return{status:'fulfilled',value:d}}function c(d){return{status:'rejected',reason:d}}return a?a:function(d){var e=this;d=Array.from(d,function(f){return e.resolve(f).then(b,c)});return e.all(d)}});var Ba=this||self;function z(a,b){a=a.split('.');let c=Ba;a[0]in c||'undefined'==typeof c.execScript||c.execScript('var '+a[0]);for(let d;a.length&&(d=a.shift());)a.length||void 0===b?c[d]&&c[d]!==Object.prototype[d]?c=c[d]:c=c[d]={}:c[d]=b};const olympe={Jj:()=>'object'===typeof window?window:'object'===typeof global?global:self};if('olympe'in olympe.Jj())throw Error('The olympe runtime is loaded more than once. Make sure not to import `@olympeio/runtime-web` or `@olympeio/runtime-node` explicitly, and to always use the `olympe` alias.');olympe.Jj().olympe=olympe;olympe.Wh=(a,...b)=>{b.forEach(c=>{Object.getOwnPropertyNames(c.prototype).forEach(d=>{'constructor'!==d&&void 0===a.prototype[d]&&(a.prototype[d]=c.prototype[d])})})};olympe.G={};olympe.G.H={};olympe.G.H.Worker=class{};olympe.sa={};olympe.sa.vo={};olympe.sa.vo.XF=class{process(a){for(const b of Object.keys(a.Rk))if(a.
|
|
252
|
+
ea('Promise.allSettled',function(a){function b(d){return{status:'fulfilled',value:d}}function c(d){return{status:'rejected',reason:d}}return a?a:function(d){var e=this;d=Array.from(d,function(f){return e.resolve(f).then(b,c)});return e.all(d)}});var Ba=this||self;function z(a,b){a=a.split('.');let c=Ba;a[0]in c||'undefined'==typeof c.execScript||c.execScript('var '+a[0]);for(let d;a.length&&(d=a.shift());)a.length||void 0===b?c[d]&&c[d]!==Object.prototype[d]?c=c[d]:c=c[d]={}:c[d]=b};const olympe={Jj:()=>'object'===typeof window?window:'object'===typeof global?global:self};if('olympe'in olympe.Jj())throw Error('The olympe runtime is loaded more than once. Make sure not to import `@olympeio/runtime-web` or `@olympeio/runtime-node` explicitly, and to always use the `olympe` alias.');olympe.Jj().olympe=olympe;olympe.Wh=(a,...b)=>{b.forEach(c=>{Object.getOwnPropertyNames(c.prototype).forEach(d=>{'constructor'!==d&&void 0===a.prototype[d]&&(a.prototype[d]=c.prototype[d])})})};olympe.G={};olympe.G.H={};olympe.G.H.Worker=class{};olympe.sa={};olympe.sa.vo={};olympe.sa.vo.XF=class{process(a){for(const b of Object.keys(a.Rk))if(a.kg(b).dE())throw Error('Service "'+b+'" is defined as abstract and needs to be overridden');}};olympe.sa.vo.XF.Aa=[olympe.sa.vo.gK];olympe.sa.vo.YF=class{process(a){function b(e,f){if(f.includes(e))throw Error('Circular dependency detected: '+f.join(' > ')+' > '+e);if(d.has(e)){f=f.concat(e);d.delete(e);e=a.kg(e);c(e.Sw(),f);for(const g of Ca(e))c(g.Sw(),f)}}function c(e,f){for(const g of e)g instanceof olympe.sa.de&&b(g.ja(),f)}const d=new Set(Object.keys(a.Rk));for(const e of d)b(e,[])}};olympe.sa.vo.YF.Aa=[olympe.sa.vo.gK];olympe.sa.vo.gK=class{process(){}};const Da=[],Ea=[];function Fa(a){const b=a.Cb();b.debug('Registering configurations...');b.C++;Da.forEach(c=>{Ga(a.V,'Registering configure callback '+(c.C?'for module '+c.C:''));a.R.push(c.D)});Ha(b);b.debug('done registering')}function Ja(a){const b=a.Cb();b.debug('Running run callbacks of container...');b.C++;Ea.forEach(c=>{const d=Ka(a,c.Sw());a.V.debug('Calling run callback '+`for module ${c.C}`);c.D.apply(null,d)});Ha(b);b.debug('done calling run callbacks. DI process completed!')}
|
|
253
253
|
olympe.sa.dG=class{constructor(){}static C(a,b){Da.push(new olympe.sa.LB(a,b))}static D(a,b,c){a.forEach(d=>{if(null===d||void 0===d)throw Error('Cannot proceed - DI configuration error. '+(c?`Run callback "${c}"`:'A run callback')+' cannot have a null or undefined dependency');});Ea.push(new olympe.sa.LB(b,c,a))}};olympe.sa.$e=olympe.sa.dG.C;olympe.sa.run=olympe.sa.dG.D;olympe.sa.KW=a=>{const b=new Map,c=(d,e)=>{for(const [f,g]of Object.entries(d))d=e.concat((f.startsWith('#')?f.substring(1):f).toLowerCase()),'object'!==typeof g||null===g||f.startsWith('#')?b.set(d.join('.'),g):c(g,d)};c(a,[]);return b};olympe.sa.ty=class{constructor(){}getValue(){}};function La(a,b){let c,d;return null!=(d=null==(c=a.O)?void 0:c.call(a,b))?d:!0}olympe.sa.LB=class{constructor(a,b,c){this.D=a;this.R=(null!=c?c:[]).map(d=>'string'===typeof d?new olympe.sa.de(d):d);this.C=null!=b?b:'no name di callback';this.O=null}Sw(){return this.R}};function Ma(a,b){var c=olympe.sa.ba.rp;if(void 0!==a.C[c])throw Error('Service "'+c+'" has already been instantiated');a.C[c]=b}function Na(a,b,c){let d=a.C[b];if(void 0===d){const e=a.R[b];if(void 0===e){if(c===olympe.sa.Xs.C.LC)return null;throw Error('Service "'+b+'" not found');}try{d=e.instantiate(a)}catch(f){throw a.V.error('Error during instantiation of service '+b),f;}!e.R&&(a.C[b]=d)}return d}
|
|
254
254
|
function Oa(a,b,c){b=b.toLowerCase();let d;const e=null!=(d=a.D.get(b))?d:[];e.push(c);a.D.set(b,e)}function Ka(a,b){const c=b.length,d=Array(c);let e,f;for(e=0;e<c;e++)a.V.C++,f=b[e],d[e]=f instanceof olympe.sa.ty?f.getValue(a):f,Ha(a.V);return d}
|
|
255
255
|
olympe.sa.Xs=class{constructor(a,b,c,d,e=2){this.R=a;this.O=b;this.parameters=c;this.C=Object.create(null);this.V=new olympe.sa.sJ(e);this.D=new Map;Ma(this,this);this.V.debug('Instantiate all computed parameters');d.forEach(f=>Na(this,f).subscribe(this.pB.bind(this,f)))}Cb(){return this.V}getParameter(a){a=a.toLowerCase();let b;return null!=(b=this.parameters[a])?b:this.O[a]}pB(a,b){a=a.toLowerCase();if(this.parameters[a]!==b){var c,d;this.V.debug(`Updating parameter ${a} to ${b} and notify ${null!=
|
|
256
256
|
(d=null==(c=this.D.get(a))?void 0:c.length)?d:0} listeners.`);this.parameters[a]=b;var e;for(const f of null!=(e=this.D.get(a))?e:[])f(b)}}};olympe.sa.Xs.C={EQ:'exception',LC:'null'};function Pa(a,b){b=olympe.sa.KW(b);for(const [c,d]of b)Qa(a,c,d)}function B(a,b,c,...d){Ga(a.V,'Defining service '+b);a.C(b,c,d,!1,!1)}function Ta(a,b,c,...d){Ga(a.V,'Defining service '+b);a.C(b,c,d,!1,!0)}function C(a,b,c,d,e=!1){Ga(a.V,'Defining service (as a factory) '+b);a.C(b,d,c,!0,e)}function Ua(a,b,c,d=!1){Ga(a.V,'Defining service alias '+b);a.C(b,e=>e,[c],!0,d)}function Wa(a,b){Ga(a.V,'Defining abstract service '+b);a.C(b).O=!0}function Qa(a,b,c){a.parameters[b.toLowerCase()]=c}
|
|
257
257
|
function Xa(a,b,c,d){a.O.push(b);Qa(a,b,d(...c.map(e=>a.getParameter(e))));C(a,b,c.map(e=>new olympe.sa.at(e)),(...e)=>rxjs.combineLatest(e).pipe(rxjs.operators.skip(1),rxjs.operators.map(f=>d(...f)),rxjs.operators.distinctUntilChanged()))}function E(a,b,c){a.D[b.toLowerCase()]=c}
|
|
258
258
|
olympe.sa.sQ=class{constructor(a,b){this.Rk=Object.create(null);this.parameters=Object.create(null);this.D=Object.create(null);this.O=[];Pa(this,a);Pa(this,b);this.W=[new olympe.sa.vo.XF,new olympe.sa.vo.YF];this.R=[];a=this.getParameter(olympe.sa.pa.GS);this.T=void 0!==a?a:3;this.V=new olympe.sa.sJ(this.T)}Cb(){return this.V}C(a,b,c,d,e){const f=a instanceof olympe.sa.de?a.ja():a;if(3<=arguments.length&&c){const k=c.indexOf(f);if(-1!==k){if(void 0===this.Rk[f])throw Error(`ContainerBuilder.define: Service ${f} references itself and is not an override definition!`);
|
|
259
|
-
var g=this.Rk[f];g.id=g.id+'!!'+ ++olympe.sa.WB.C;g.R=!0;g=g.id;c[k]=g;this.Rk[g]=this.Rk[f]}}this.Rk[f]=new olympe.sa.WB(b,c,d||!1,f);return this.Rk[f]}
|
|
259
|
+
var g=this.Rk[f];g.id=g.id+'!!'+ ++olympe.sa.WB.C;g.R=!0;g=g.id;c[k]=g;this.Rk[g]=this.Rk[f]}}this.Rk[f]=new olympe.sa.WB(b,c,d||!1,f);return this.Rk[f]}kg(a){const b=this.Rk[a];if(void 0===b)throw Error(`DI Error: Definition ${a} was not found`);return b}getParameter(a){a=a.toLowerCase();let b;return null!=(b=this.parameters[a])?b:this.D[a]}compile(){const a=this.R;this.V.debug('Calling '+a.length+' configure callbacks');this.V.C++;a.forEach(b=>{Ga(this.V,'Calling callback');this.V.C++;b(this);Ha(this.V)});
|
|
260
260
|
Ha(this.V);this.V.debug('Configuration summary: '+Object.keys(this.Rk).length+' definitions');this.V.debug('Compiling...');this.V.C++;this.W.forEach((b,c)=>{this.V.debug('running compilation pass '+(c+1)+': '+b.constructor.name);b.process(this)});Ha(this.V);this.V.debug('Compilation done, returning container');return new olympe.sa.Xs(this.Rk,this.D,this.parameters,this.O,this.T)}};function Ca(a){let b,c;return null!=(c=null==(b=a.C)?void 0:b.values())?c:[]}
|
|
261
261
|
olympe.sa.WB=class{constructor(a,b,c,d){this.T=a||null;this.W=!!c;this.D=(null!=b?b:[]).map(e=>'string'===typeof e?new olympe.sa.de(e):e);this.O=!1;this.C=null;this.id=null!=d?d:'';this.R=!1}ja(){return this.id}instantiate(a){const b=a.Cb();b.debug('Resolving arguments for '+this.id);const c=this.T;let d=Ka(a,this.D);const e=()=>{if(this.W)return c.apply(null,d);d.unshift(null);return new (c.bind.apply(c,d))};Ga(b,'Instantiating '+this.id);const f=olympe.j?olympe.j.Eo().run(()=>e()):e();let g;if(0<
|
|
262
262
|
(null==(g=this.C)?void 0:g.size)){b.C++;Ga(b,'Calling configuration callbacks:');for(const k of this.C.values())b.C++,Ga(b,'Check if need to call additional configuration callback '+k.C),La(k,f)?(Ga(b,'Calling additional configuration callback '+k.C),d=Ka(a,k.Sw()),d.push(f),k.D.apply(null,d)):Ga(b,'Will not call additional configuration callback '+k.C+'predicate has returned false'),Ha(b);Ha(b)}Ga(b,'Done instantiating '+this.id);return f}Sw(){return this.D}dE(){return this.O}$e(a,b,c,d,e){null===
|
|
@@ -302,13 +302,13 @@ olympe.oa.SX=a=>{var b=['oConfig.json','conf.d/oConfig.json','version.json'];ret
|
|
|
302
302
|
b[e]?'version.':'');return c},Object.create(null))})};olympe.oa.EV=a=>{const b=/^true|false$/i,c=/^\d+(\.\d+)?$/;void 0===a?a=!0:a.startsWith('"')&&a.endsWith('"')?a=a.substring(1,a.length-1):b.test(a)?a='true'===a.toLowerCase():c.test(a)&&(a=parseFloat(a));return a};olympe.oa.GO=(a,b,c)=>{if(b instanceof Object)for(const d of Object.keys(b)){const e=c+d,f=b[d];f instanceof Object&&void 0!==a[e]?olympe.oa.GO(a[e],f,''):a[e]=f}};olympe.oa.D2=class a{constructor(b,c){this.x=b;this.y=c}add(b){return new a(this.x+b.x,this.y+b.y)}rotate(b,c){c=c*Math.PI/180;const d=Math.cos(c);c=Math.sin(c);return new a(d*(this.x-b.x)-c*(this.y-b.y)+b.x,c*(this.x-b.x)+d*(this.y-b.y)+b.y)}clone(){return new a(this.x,this.y)}tA(){return Math.sqrt(this.x*this.x+this.y*this.y)}toString(){return`Vector(${this.x}, ${this.y})`}};olympe.oa.MS=class{constructor(a,b){this.start=a;this.end=b}};olympe.oa.MS.C={Tf:'left',wi:'right',zh:'bottom',gh:'top'};function Gb(a){return`${a.C}.${a.D}.${a.O}`}
|
|
303
303
|
olympe.oa.so=class{constructor(a,b,c,d){this.C=a;this.D=b;this.O=c;this.R=d||null}static parse(a){a=/([0-9]*)\.([0-9]*)\.([0-9]*)-?([A-z\-_0-9]*)/.exec(a);if(null===a||4>a.length)return olympe.oa.so.C;const b=Number.parseInt(a[1],10),c=Number.parseInt(a[2],10),d=Number.parseInt(a[3],10);return isNaN(b)||isNaN(c)||isNaN(d)?olympe.oa.so.C:new olympe.oa.so(b,c,d,a[4])}HA(a){return this.C!==a.C?this.C>a.C:this.D!==a.D?this.D>a.D:this.O>a.O}ey(a){return this.C!==a.C?this.C<a.C:this.D!==a.D?this.D<a.D:
|
|
304
304
|
this.O<a.O}Rb(a){return this.C===a.C&&this.D===a.D&&this.O===a.O}toString(){return`${this.C}.${this.D}.${this.O}`+(null!==this.R?`-${this.R}`:'')}};olympe.oa.so.C=new olympe.oa.so(Number.NaN,Number.NaN,Number.NaN);olympe.oa.ba={Uq:'utils.binaryConverter',TP:'utils.base64Converter',ho:'utils.Profiler'};olympe.sa.$e(a=>{Wa(a,olympe.oa.ba.Uq);Ua(a,olympe.oa.ba.TP,olympe.oa.ba.Uq,!0);B(a,olympe.oa.ba.ho,olympe.oa.DT)},'Utils services');olympe.sa.run([olympe.oa.ba.Uq,olympe.oa.ba.ho],(a,b)=>{olympe.oa.Dj=()=>a;olympe.Jj().isProfilerEnabled=()=>b.C;olympe.Jj().startProfiler=()=>b.start();olympe.Jj().stopProfiler=()=>b.stop();olympe.Jj().getProfilerEvents=()=>({events:b.X,names:Object.fromEntries(b.R.entries()),models:Object.fromEntries(b.O.entries())})});olympe.G.H.oa={};olympe.G.H.oa.EB=class extends olympe.oa.EB{D(a){a=window.atob(a);const b=new Uint8Array(new ArrayBuffer(a.length));for(let c=0,d=a.length;c<d;c++)b[c]=a.charCodeAt(c);return b}C(a){let b='';a=a instanceof Uint8Array?a:new Uint8Array(a);for(let c=0,d=a.byteLength;c<d;c++)b+=String.fromCodePoint(a[c]);return window.btoa(b)}O(a){return q(function*(){return yield(yield fetch(a)).blob()})}};olympe.sa.$e(a=>{Ta(a,olympe.oa.ba.Uq,olympe.G.H.oa.EB)},'olympe.native.html.utils');olympe.gb={};olympe.gb.Ge=class{bb(){}R(){}O(){}C(){}ma(){}T(){}za(){}ca(){}da(){}trace(){}debug(){}log(){}info(){}warn(){}error(){}fatal(){}};olympe.gb.Ge.prototype.fatal=olympe.gb.Ge.prototype.fatal;olympe.gb.Ge.prototype.error=olympe.gb.Ge.prototype.error;olympe.gb.Ge.prototype.warn=olympe.gb.Ge.prototype.warn;olympe.gb.Ge.prototype.info=olympe.gb.Ge.prototype.info;olympe.gb.Ge.prototype.log=olympe.gb.Ge.prototype.log;olympe.gb.Ge.prototype.debug=olympe.gb.Ge.prototype.debug;olympe.gb.Ge.prototype.trace=olympe.gb.Ge.prototype.trace;
|
|
305
|
-
olympe.gb.Ge.C={BU:0,tp:1,FS:2,oC:3,VU:4,
|
|
306
|
-
olympe.gb.Zh.Ge=class{constructor(a,b){this.name=a;const c=b instanceof rxjs.Observable;this.D=c?olympe.gb.Ge.C.oC:b;c&&b.subscribe(d=>{this.D=d});this.$=a.toUpperCase();this.W=new Map;this.Pa=console}bb(){return this.name}R(){return this.D}O(){return this.D<=olympe.gb.Ge.C.BU}C(){return this.D<=olympe.gb.Ge.C.tp}T(){return this.D<=olympe.gb.Ge.C.FS}ma(){return this.D<=olympe.gb.Ge.C.oC}za(){return this.D<=olympe.gb.Ge.C.VU}ca(){return this.D<=olympe.gb.Ge.C.
|
|
305
|
+
olympe.gb.Ge.C={BU:0,tp:1,FS:2,oC:3,VU:4,we:5,KQ:6,B0:7};olympe.gb.Ge.D={0:'TRACE',1:'DEBUG',2:'LOG',3:'INFO',4:'WARN',5:'ERROR',6:'FATAL',7:'NOTHING'};olympe.gb.Cc=class{Vg(){}};olympe.gb.Zh={};function Hb(a,b,c){a.Pa[b](`[OLYMPE.${a.$}]:`,...c);if(0<a.W.size){var d=new Date;d=('00'+d.getHours()).substring(-2)+':'+('00'+d.getMinutes()).substring(-2)+':'+('00'+d.getSeconds()).substring(-2)+'.'+('00'+d.getMilliseconds()).substring(-3);for(const e of a.W.values())e(d,a.$,b,...c)}}
|
|
306
|
+
olympe.gb.Zh.Ge=class{constructor(a,b){this.name=a;const c=b instanceof rxjs.Observable;this.D=c?olympe.gb.Ge.C.oC:b;c&&b.subscribe(d=>{this.D=d});this.$=a.toUpperCase();this.W=new Map;this.Pa=console}bb(){return this.name}R(){return this.D}O(){return this.D<=olympe.gb.Ge.C.BU}C(){return this.D<=olympe.gb.Ge.C.tp}T(){return this.D<=olympe.gb.Ge.C.FS}ma(){return this.D<=olympe.gb.Ge.C.oC}za(){return this.D<=olympe.gb.Ge.C.VU}ca(){return this.D<=olympe.gb.Ge.C.we}da(){return this.D<=olympe.gb.Ge.C.KQ}trace(...a){this.O()&&
|
|
307
307
|
Hb(this,'trace',a)}debug(...a){this.C()&&Hb(this,'debug',a)}log(...a){this.T()&&Hb(this,'log',a)}info(...a){this.ma()&&Hb(this,'info',a)}warn(...a){this.za()&&Hb(this,'warn',a)}error(...a){this.ca()&&Hb(this,'error',a)}fatal(...a){this.da()&&Hb(this,'error',a)}};olympe.gb.Zh.Ge.Aa=[olympe.gb.Ge];olympe.gb.Zh.Cc=class{constructor(a,b,c){this.C=a;this.D=parseInt(b,10);this.O=c;this.channels=new Map;this.V=this.Vg('logging');this.V.log('Logging initialized, global log level is '+olympe.gb.Ge.D[b])}Vg(a){var b=this.channels.get(a);if(!b){b=`${olympe.gb.pa.dQ}.${a}`;var c;const d=new rxjs.BehaviorSubject(null!=(c=this.C.getParameter(b))?c:this.D);Oa(this.C,b,e=>{d.next(e)});c=this.O;b=`${b}.${olympe.gb.pa.eU}`;Object.prototype.hasOwnProperty.call(this.C.parameters,b.toLowerCase())&&(c=!0===this.C.getParameter(b));
|
|
308
308
|
b=new olympe.gb.Zh.Ge(a,d.asObservable(),c);this.channels.set(a,b)}return b}};olympe.gb.Zh.Cc.Aa=[olympe.gb.Cc];olympe.gb.ba={Ob:'logging.Manager'};olympe.gb.pa={ZG:'logging',$G:'logging.showLogLevel',dQ:'logging',eU:'showLogLevel'};olympe.sa.$e(function(a){E(a,olympe.gb.pa.ZG,olympe.gb.Ge.C.oC);E(a,olympe.gb.pa.$G,!0);Ta(a,olympe.gb.ba.Ob,olympe.gb.Zh.Cc,olympe.sa.ba.rp,new olympe.sa.zb(olympe.gb.pa.ZG),new olympe.sa.zb(olympe.gb.pa.$G))},'olympe.logging');olympe.sa.run([olympe.gb.ba.Ob],a=>{olympe.gb.Cb=b=>a.Vg(b)},'Logging singleton getter initialization');olympe.j={};olympe.j.pa={KJ:'df.nodeCreationThreshold'};const Ib=[];function Jb(){}function Kb(){}olympe.j.J=class a{constructor(b,c,d){this.C=void 0===b?Jb:b;this.D=void 0===c?Ib:c;this.$=d}static C(b){return void 0===b||0===b.length?olympe.j.J.ca:new a(Kb,b)}R(){return this.C?this.C():void 0}O(){return this.D?this.D:Ib}T(){return null===this.C&&null===this.D}W(){return this.C===Kb}};olympe.j.J.$=new olympe.j.J;olympe.j.J.O=new olympe.j.J(null,null);olympe.j.J.ca=new olympe.j.J(Kb);olympe.j.J.D=new olympe.j.J(()=>olympe.j.aa);
|
|
309
|
-
olympe.j.J.R=new olympe.j.J(()=>olympe.j.kb);olympe.j.J.T=new olympe.j.J(()=>olympe.j.ia);olympe.j.J.W=new olympe.j.J(()=>olympe.j.ga);olympe.j.et=class{ja(){return''}PD(){return''}destroy(){}lc(){return!1}
|
|
309
|
+
olympe.j.J.R=new olympe.j.J(()=>olympe.j.kb);olympe.j.J.T=new olympe.j.J(()=>olympe.j.ia);olympe.j.J.W=new olympe.j.J(()=>olympe.j.ga);olympe.j.et=class{ja(){return''}PD(){return''}destroy(){}lc(){return!1}$f(){return!1}run(a,...b){return a(...b)}re(a){return a}getParent(){return null}Ef(){}nk(){}detach(){}cA(){}xo(){}onDestroy(){return''}Lo(){}Ve(){return''}IO(){}};olympe.j.et.prototype.offDestroy=olympe.j.et.prototype.Lo;olympe.j.et.prototype.onDestroy=olympe.j.et.prototype.onDestroy;let Lb=0;olympe.sa.run([new olympe.sa.zb(olympe.j.pa.KJ)],()=>{});
|
|
310
310
|
olympe.j.ee=class{constructor(a='SimpleContext',b){++Lb;this.children=new Map;this.ca=new Map;this.$=new Map;this.za=0;this.name=a;this.id=String(Lb);this.O=this.da=!1;(this.parent=void 0===b?olympe.j.yb():b)&&this.parent.nk(this);this.debug=!1}ja(){return this.id}PD(){return this.name}run(a,...b){if(!this.da){var c=olympe.j.ZO(this);a=a(...b);c&&olympe.j.ZO(c);return a}}re(a){return(...b)=>this.run(a,...b)}destroy(){if(!this.da&&!this.O){this.O=!0;this.xo();for(const a of this.ca.keys())this.ca.has(a)&&
|
|
311
|
-
this.ca.get(a)();this.ca.clear();this.$.clear();this.parent&&(this.parent.detach(this,!1),this.parent=null);this.da=!0;this.O=!1;this.xo()}}lc(){return this.da}
|
|
311
|
+
this.ca.get(a)();this.ca.clear();this.$.clear();this.parent&&(this.parent.detach(this,!1),this.parent=null);this.da=!0;this.O=!1;this.xo()}}lc(){return this.da}$f(){return this.O}nk(a){if(!this.da){var b;olympe.j.Zb(a)?b=a.Tb:olympe.j.gE(a)&&(b=a);b&&this.children.set(b.ja(),b)}}detach(a,b=!0){let c;olympe.j.Zb(a)?c=a.Tb:olympe.j.gE(a)&&(c=a);c&&this.children.has(c.ja())&&(b&&c.cA(this),this.children.delete(c.ja()))}cA(){this.parent=null;this.destroy()}xo(){const a=this.children;for(const b of a.keys())a.has(b)&&
|
|
312
312
|
a.get(b).cA(this);this.children.clear();for(const b of this.$.keys())this.$.has(b)&&this.$.get(b)();this.$.clear()}onDestroy(a,b){void 0===b&&(++this.za,b=String(this.za));this.ca.set(b,a);return b}Lo(a){this.ca.delete(a)}Ve(a){if(void 0===b){++this.za;var b=String(this.za)}this.$.set(b,a);return b}IO(a){this.$.delete(a)}Ef(a){this.parent&&this.parent.detach(this,!1);(this.parent=a||null)&&this.parent.nk(this)}getParent(){return this.parent}};
|
|
313
313
|
olympe.j.EK=class extends olympe.j.ee{constructor(){super('Root',null)}destroy(){}onDestroy(){return''}Lo(){}};olympe.j.et.Aa=[olympe.j.et];let Mb=0;
|
|
314
314
|
function Ob(a,b){a.T||(a.T=new Map);a.T.set(b.ja(),b);switch(b.jh()){case olympe.j.Node.C.yt:break;case olympe.j.Node.C.Qt:break;case olympe.j.Node.C.kz:case olympe.j.Node.C.up:olympe.j.V.warn('Not bad as such but should not happen!');break;case olympe.j.Node.C.ft:Pb(a,olympe.j.Node.C.ft);break;case olympe.j.Node.C.OBSOLETE:a.Ha=!0;a.C!==olympe.j.Node.C.ft&&Pb(a,olympe.j.Node.C.OBSOLETE);break;case olympe.j.Node.C.tj:olympe.j.V.warn('Adding a destroyed node as upstream => should never happen!');break;
|
|
@@ -323,7 +323,7 @@ function dc(a,b){if(a.C!==olympe.j.Node.C.up&&a.C!==olympe.j.Node.C.tj&&(a.C!==o
|
|
|
323
323
|
function Tb(a,b){b===a?olympe.j.V.error('Setting a node as provider of itself. Ignoring'):(a.D&&a.D!==b&&Yb(a),Qb(b,a),Sb(b)?Ub(a,b.pg,!0):void 0!==a.defaultValue?Ub(a,a.defaultValue,!0):dc(a),a.D=b)}function ec(a,b){a.Jh&&(a.Jh=void 0);a.Bd='Repeater';Tb(a,b)}function ac(a){a.D?$b(a):null!==a.T&&0===Array.from(a.T.values()).filter(b=>!Sb(b)).length&&(a.Ha&&(a.Ha=!1,Rb(a)),$b(a))}
|
|
324
324
|
function Qb(a,b){a.R||(a.R=new Map);a.R.set(b.ja(),b);a.C===olympe.j.Node.C.tj&&olympe.j.V.warn('adding a downstream node on a deleted one (#'+a.ja()+') !')}function Zb(a,b){a.R&&(b=b.ja(),a.R.has(b)&&(a.R.delete(b),fc(a)))}function fc(a){if(null===a.getParent()){var b=a.R;b&&0<b.size||a.destroy()}}
|
|
325
325
|
olympe.j.Node=class extends olympe.j.ee{constructor({valueType:a,Jh:b,uY:c=!0,Zo:d,cE:e,debug:f=!1,Xp:g=null,Bd:k='Node',Dw:l}={}){++Mb;super(String(Mb));this.debug=!!f;this.Bd=k;k&&'string'===typeof k||(b?this.Bd=b.name?b.name:'anon()':this.Bd='Node');this.W=e&&0<e.length?e:null;this.Xp=g&&0<g.length?g:null;this.valueType=a;this.pg=void 0;this.ma=!1;this.C=olympe.j.Node.C.yt;this.Ha=!1;this.R=this.T=null;this.Jh=b;this.Zo=d||null;this.defaultValue=this.Pa=this.D=void 0;this.Dw=l;d&&d instanceof olympe.j.Node&&
|
|
326
|
-
Ob(this,d);if(g)for(b=0;b<g.length;b++)a=e[g[b]],Ob(this,a);c&&Rb(this)}kj(a){this.defaultValue=a;this.C===olympe.j.Node.C.yt&&Ub(this,a,!0);return this}Gw(a){this.valueType=a}Ee(){return this.valueType||Object}asObservable(a=olympe.j.yb()){return new rxjs.Observable(b=>{const c=a.run(()=>olympe.j.createNode(this.valueType,b.next.bind(b),null,[this],[0],`Observable of ${this.Bd}`));c.onDestroy(()=>b.complete());return()=>c.destroy()})}jh(){return this.C}lc(){return this.C===olympe.j.Node.C.tj}
|
|
326
|
+
Ob(this,d);if(g)for(b=0;b<g.length;b++)a=e[g[b]],Ob(this,a);c&&Rb(this)}kj(a){this.defaultValue=a;this.C===olympe.j.Node.C.yt&&Ub(this,a,!0);return this}Gw(a){this.valueType=a}Ee(){return this.valueType||Object}asObservable(a=olympe.j.yb()){return new rxjs.Observable(b=>{const c=a.run(()=>olympe.j.createNode(this.valueType,b.next.bind(b),null,[this],[0],`Observable of ${this.Bd}`));c.onDestroy(()=>b.complete());return()=>c.destroy()})}jh(){return this.C}lc(){return this.C===olympe.j.Node.C.tj}$f(){return this.C===
|
|
327
327
|
olympe.j.Node.C.up}Ka(...a){if(this.Dw instanceof Function)return this.Dw(...a);var b=a.length;--b;const c=a[b];--b;const d=a[b],e=Array(b);for(var f=0;f<b;f++)e[f]=a[f];a=this.jh();a!==olympe.j.Node.C.up&&a!==olympe.j.Node.C.tj||olympe.j.V.warn('Calling a function on a destroyed node!!!',this);a=d.O();b=[];if(1===a.length&&-1===a[0])for(var g of e)olympe.j.Zb(g)&&b.push(g.Tb);else for(let k=0,l=a.length;k<l;k++)g=a[k],f=e[g],void 0!==f&&null!==f&&f.Gh&&(e[g]=f.Tb,b.push(g));return Wb(new olympe.j.Node({valueType:d.R(),
|
|
328
328
|
Jh:c,Zo:this,cE:e,debug:!1,Xp:b,Bd:'Proxy.'+c+'()'}))}cA(a){if(null===this.getParent())olympe.j.V.warn('context is undefined, investigate');else if(this.getParent()!==a){olympe.j.V.warn('Investigate a potential issue in creator-createe link: create node mismatch',a,this.getParent());return}this.Ef(null);fc(this)}destroy(){var a=this.C;if(a!==olympe.j.Node.C.up&&a!==olympe.j.Node.C.tj){Pb(this,olympe.j.Node.C.up);if(a=this.R){for(const c of a.values())if(a.has(c.ja())){var b=c;b.T&&b.T.delete(this.ja());
|
|
329
329
|
b.D&&b.D.ja()===this.ja()?b.D=void 0:b.destroy()}a.clear()}this.R=null;super.destroy();if(this.T){for(const c of this.T.values())this.T.has(c.ja())&&Zb(c,this);this.T.clear()}this.T=null;this.D&&(Zb(this.D,this),this.D=void 0);this.pg=void 0;this.W&&(this.W.length=0,this.W=null);this.Xp&&(this.Xp.length=0,this.Xp=null);this.Dw=this.Jh=void 0;this.defaultValue=this.Zo=null;this.Bd=`** Destroyed ** ${this.Bd}`;Pb(this,olympe.j.Node.C.tj)}}PD(){return this.Bd}};olympe.j.Node.D='rootNode';
|
|
@@ -340,7 +340,7 @@ c.valueOf()),olympe.j.aa,'ONumber.div')}ox(a){return olympe.j.Xa([this,a],(b,c)=
|
|
|
340
340
|
a],(b,c)=>olympe.j.hc(b.Rb(c)),olympe.j.ia,'ONumber.oEquals')}Rb(a){return this.valueOf()===(void 0!==a&&null!==a?a.valueOf():void 0)}valueOf(){return void 0!==this.value?this.value.valueOf():void 0}cX(){return this.valueOf()}Mj(a){return olympe.j.Xa([this,a],(b,c)=>b.valueOf()>c.valueOf()?olympe.j.ia.C:olympe.j.ia.pb,olympe.j.ia,'ONumber.isBiggerThan')}VO(a){return olympe.j.Xa([this,a],(b,c)=>b.valueOf()>=c.valueOf()?b:olympe.j.Ba(c),olympe.j.aa,'ONumber.returnsBiggest')}vn(a){return olympe.j.Xa([this,
|
|
341
341
|
a],(b,c)=>b.valueOf()<=c.valueOf()?b:olympe.j.Ba(c),olympe.j.aa,'ONumber.returnsSmallest')}hE(a){return olympe.j.Xa([this,a],(b,c)=>b.valueOf()<c.valueOf()?olympe.j.ia.C:olympe.j.ia.pb,olympe.j.ia,'ONumber.isSmallerThan')}sin(){return olympe.j.Ba(Math.sin(this.valueOf()))}cos(){return olympe.j.Ba(Math.cos(this.valueOf()))}atan2(a){return olympe.j.Zb(a)?olympe.j.di([a],b=>olympe.j.Ba(Math.atan2(this.valueOf(),b.valueOf())),olympe.j.aa):olympe.j.Ba(Math.atan2(this.valueOf(),a.valueOf()))}abs(){return olympe.j.Ba(Math.abs(this.valueOf()))}nx(a,
|
|
342
342
|
b){return olympe.j.Zb(a)||olympe.j.Zb(b)?olympe.j.di([a,b],(c,d)=>olympe.j.Ba(this.valueOf()*d.valueOf()+c.valueOf()*(1-d.valueOf())),olympe.j.aa):olympe.j.Ba(this.valueOf()*b.valueOf()+a.valueOf()*(1-b.valueOf()))}static gV(a,b,c,d){'number'===typeof a&&(a=olympe.j.la(a));'number'===typeof b&&(b=olympe.j.la(b));'number'===typeof c&&(c=olympe.j.la(c));let e=0;const f=olympe.j.la(0);let g,k;void 0!==b&&void 0!==c&&olympe.j.$a(b.Mj(c),()=>{olympe.gb.Cb('df').warn('You have a min bigger than max, cap your inputs')});
|
|
343
|
-
const l=(m,n)=>{n=olympe.j.la(n);const p=olympe.j.aa.animate(n,500);mc(f,p);I(n,olympe.j.Ba(m));e=m};olympe.j.di([a],m=>{e+=m.valueOf();e>k?l(k,e):e<g?l(g,e):mc(f,olympe.j.la(e))},olympe.j.aa);void 0!==b&&olympe.j.
|
|
343
|
+
const l=(m,n)=>{n=olympe.j.la(n);const p=olympe.j.aa.animate(n,500);mc(f,p);I(n,olympe.j.Ba(m));e=m};olympe.j.di([a],m=>{e+=m.valueOf();e>k?l(k,e):e<g?l(g,e):mc(f,olympe.j.la(e))},olympe.j.aa);void 0!==b&&olympe.j.cg(b.valueOf(),m=>{if(g!==m&&(g=m,g>e)){const n=olympe.j.la(e),p=olympe.j.aa.animate(n,400,d);m=olympe.j.Ba(g);Ub(n.Tb,m);e=g;mc(f,p)}});void 0!==c&&olympe.j.cg(c.valueOf(),m=>{if(k!==m&&(k=m,k<e)){const n=olympe.j.la(e),p=olympe.j.aa.animate(n,400,d);m=olympe.j.Ba(k);Ub(n.Tb,m);e=k;mc(f,
|
|
344
344
|
p)}});return f}static offset(a){let b;return olympe.j.di([a],c=>{void 0===b&&(b=c);return olympe.j.Ba(c-b)},olympe.j.aa,'offset')}static AM(a){let b,c,d;return olympe.j.Xa([a],e=>{if(void 0===b)return b=e,c=window.performance.now(),olympe.j.Ba(0);d=window.performance.now();const f=olympe.j.Ba((e.valueOf()-b.valueOf())/(d-c));b=e;c=d;return f},olympe.j.aa,'derivative')}static EX(a){let b=olympe.j.Ba(0),c,d,e;return olympe.j.Xa([a],f=>{if(void 0===c)return c=f,d=window.performance.now(),olympe.j.Ba(0);
|
|
345
345
|
e=window.performance.now();b=b.Sa((f.valueOf()+c.valueOf())/2*(e-d));c=f;d=e;return b},olympe.j.aa,'integrate')}static RV(a){let b;return olympe.j.Xa([a],c=>{void 0===b&&(b=c.valueOf());const d=olympe.j.Ba(c.valueOf()-b.valueOf());b=c;return d},olympe.j.aa,'diff')}static DD(a,b,c){return olympe.j.di([a,b,c],(d,e,f)=>{d='number'===typeof d?d:d.valueOf();e='number'===typeof e?e:e.valueOf();f='number'===typeof f?f:f.valueOf();return olympe.j.Ba(d>=e?d<=f?d:f:e)},olympe.j.aa)}static animate(a,b,c,d){let e;
|
|
346
346
|
return e=olympe.j.Xa([a],f=>{const g=olympe.j.Qa(b,1E3),k=olympe.j.Qa(e);return void 0===k?olympe.j.Ba(f):qc(k,f,g,c,l=>{d&&d(l)})},olympe.j.aa)}static sV(a,b,c){let d,e,f,g,k,l,m=olympe.j.la(),n;olympe.j.Wa([a],p=>{void 0===d?g=d=p.valueOf():d=g;f=window.performance.now();e=p.valueOf();l=e-d;0!==l&&void 0===n&&(n=setInterval(()=>{l=e-d;k=(window.performance.now()-f)/b;1<=k&&(k=1);g=d+l*c(k,0,1,1);I(m,olympe.j.Ba(g));1===k&&(clearTimeout(n),n=void 0)},0))});return m}static og(a){return olympe.j.Zb(a)?
|
|
@@ -403,7 +403,7 @@ h.ql.K=olympe.j.J.O;h.Ow.K=new olympe.j.J(()=>{},[]);h.FO.K=olympe.j.J.O;h.qu.K=
|
|
|
403
403
|
a){const b=this.values[a];b&&b instanceof olympe.j.Proxy?mc(this.D,b):I(this.D,b);I(this.C,a)}else void 0!==F(this.D)&&(kc(this.D),kc(this.C))}set(a,b){this.Vz(a,b);1===this.size&&null!==this.C&&this.Ix(a);this.uo()}remove(a){const b=this.uw(a);null!==this.C&&F(this.C)===a&&this.Ix(this.MD());return b}clear(){this.Xt();null!==this.C&&this.Ix()}};h=olympe.j.Map.prototype;h.mi.K=olympe.j.J.O;h.Vd.K=new olympe.j.J(()=>Object,[]);h.Sm.K=new olympe.j.J(()=>String,[]);h.ID.K=olympe.j.J.O;h.MD.K=olympe.j.J.O;
|
|
404
404
|
h.Ix.K=olympe.j.J.O;h.set.K=olympe.j.J.O;h.remove.K=new olympe.j.J(()=>Object,[]);h.clear.K=olympe.j.J.O;olympe.j.Be=class extends olympe.j.py{constructor(a){super(a)}set(a,b,c){this.Vz(a,b);void 0!==c&&olympe.j.Wa([c],d=>{this.Wz(a,d)});this.uo()}Cs(a,b){olympe.j.Wa([b],c=>{this.Wz(a,c);this.yD()})}remove(a){this.wD(a);return this.uw(a)}clear(){this.Xt()}};olympe.j.Be.prototype.remove.K=olympe.j.J.O;olympe.j.Be.prototype.clear.K=olympe.j.J.O;olympe.j.PP=class extends olympe.j.Ty{constructor(a,b){super(olympe.j.aa,'animatedFlowSource');this.duration=a;this.D=b||olympe.j.aa.Dh.qJ}wa(){return olympe.j.Gi(this.C,this.duration,this.D,void 0)}};let Gc=null;olympe.j.V=void 0;olympe.j.vE=void 0;olympe.j.fu=void 0;olympe.j.Wt=new Map;olympe.j.Wt.set(0,olympe.j.aa.ZERO);olympe.j.Wt.set(1,olympe.j.aa.ONE);olympe.j.Wt.set(2,olympe.j.aa.uL);olympe.j.Uz=new Map;olympe.j.Uz.set('',olympe.j.kb.EMPTY);olympe.j.Uz.set(' ',olympe.j.kb.cD);olympe.j.createNode=function(a,b,c,d,e,f,g,k){return new olympe.j.Node({valueType:a,Jh:b,Zo:c,cE:d,debug:g,Xp:e,Bd:f,Dw:k})};olympe.j.$m=function(a){return a instanceof olympe.j.Node};
|
|
405
405
|
olympe.j.ub=function(a,b,c){a=olympe.j.createNode(a,void 0,void 0,void 0,void 0,c);olympe.j.$m(b)?ec(a,b):olympe.j.Zb(b)?ec(a,b.Tb):Ub(a,b);return Wb(a)};olympe.j.Zb=function(a){return!(!a||!a.Gh)};olympe.j.Mg=function(a){return!(!a||!(a instanceof olympe.j.Node||a.Gh))};olympe.j.gE=function(a){return a instanceof olympe.j.ee||a instanceof olympe.j.EK||a instanceof olympe.j.Node};olympe.j.ds=function(a){return a instanceof olympe.j.Ty};
|
|
406
|
-
olympe.j.
|
|
406
|
+
olympe.j.cg=function(a,b){if(void 0!==a){olympe.j.ds(a)&&(a=a.wa().Tb);if(!olympe.j.Mg(a))return b(a);var c=[];olympe.j.Zb(a)?c.push(a.Tb):c.push(a);return olympe.j.createNode(void 0,b,null,c,[0],'onResolved')}};olympe.j.Qa=function(a,b){let c=a;olympe.j.Zb(a)?c=F(a):olympe.j.$m(a)?c=a.pg:olympe.j.ds(a)&&(c=F(a.wa()));return void 0===c?b:c};olympe.j.kj=function(a,b){let c;olympe.j.Zb(a)?c=a.Tb:olympe.j.$m(a)?c=a:olympe.j.ds(a)&&(c=a.wa().Tb);c&&olympe.j.Wa([b],d=>{c.kj(d)},'setDefaultValue');return a};
|
|
407
407
|
olympe.j.mv=function(a,b,c,d){const e=a.length,f=Array(e),g=[];let k;for(let l=0;l<e;l++)k=a[l],void 0!==k&&null!==k&&(void 0!==k.iM?(k=k.Tb,g.push(l)):k instanceof olympe.j.Node?g.push(l):olympe.j.ds(k)&&(k=k.wa().Tb,g.push(l))),f[l]=k;return olympe.j.createNode(c,b,null,f,g,d||'syncNodes')};olympe.j.di=function(a,b,c,d){return Wb(olympe.j.mv(a,b,c,d||'syncProxies'))};const Hc=a=>{for(const b of a)if(olympe.j.Mg(b)||olympe.j.ds(b))return!1;return!0};
|
|
408
408
|
olympe.j.Xa=function(a,b,c,d,e){if(Hc(a))return b(...a);const f=olympe.j.mv(a,b,c,d||'TransformFlows');e&&olympe.j.Wa([e],g=>{f.kj(g)},'setDefaultValue');return Wb(f)};olympe.j.Wa=function(a,b,c){Hc(a)?b(...a):olympe.j.mv(a,b,void 0,c||'processFlows')};olympe.j.P2=function(a,b,c){const d=olympe.j.$m(a)?a.Ee():olympe.j.ds(a)?a.wa().Vt:a.Vt,e=olympe.j.Za(d,c),f=olympe.oa.Promise.dA(g=>{e.getContext().lc()||e.update(g)},b);olympe.j.Wa([a],g=>f(g).then());return e.wa()};
|
|
409
409
|
olympe.j.ls=function(a,b){if(Hc(a))b(...a);else{const c=olympe.j.yb();olympe.j.mv(a,(...d)=>{olympe.j.yb().destroy();c.run(b,...d)},void 0,'processFlowsOnce')}};olympe.j.Fl=function(a,b,c){const d=a.length,e=Array(d),f=[];let g;for(let k=0;k<d;k++)g=a[k],void 0!==g&&null!==g&&(olympe.j.Zb(g)?(g=g.Tb,f.push(k)):g instanceof olympe.j.Node?f.push(k):olympe.j.ds(g)&&(g=g.wa().Tb,f.push(k))),e[k]=g;0!==f.length&&new olympe.j.Node({Jh:b,cE:e,Xp:f,uY:!1,Bd:c})};
|
|
@@ -425,7 +425,7 @@ olympe.j.Hz=class{constructor(){this.O=new olympe.j.ee('Slot Manager context');t
|
|
|
425
425
|
class Pc{constructor(a,b,c,d){this.id=a;this.D=new olympe.j.ee('Slot manager entry');this.O=c;this.T=d;this.D.run(()=>{const e=M(olympe.j.Za(olympe.j.aa),olympe.j.aa.ZERO);olympe.j.Zb(b)?e.repeat(b):e.update(b);this.C=olympe.j.Za(olympe.j.aa);this.R=this.C.wa().Sa(e.wa())});this.next=null}ja(){return this.id}bO(){return this.C.wa()}QD(){return this.R}gf(){return this.O}MA(){return this.T}DP(a){this.O=a}nP(a){null===a?this.C.update(olympe.j.aa.ZERO):(this.C.repeat(a.QD()),a.next=this)}JH(){this.C.clear();
|
|
426
426
|
this.next=null}destroy(){this.D.destroy();this.R=this.C=this.next=null}}h=Pc.prototype;h.ja.K=olympe.j.J.O;h.bO.K=new olympe.j.J(()=>olympe.j.aa);h.QD.K=new olympe.j.J(()=>olympe.j.aa);h.gf.K=olympe.j.J.O;h.MA.K=olympe.j.J.O;h.DP.K=olympe.j.J.O;h.nP.K=olympe.j.J.O;h.JH.K=olympe.j.J.O;h.destroy.K=olympe.j.J.O;olympe.j.ba={Vb:'df.Logger'};olympe.sa.$e(a=>{E(a,olympe.j.pa.KJ,Number.POSITIVE_INFINITY);C(a,olympe.j.ba.Vb,[olympe.gb.ba.Ob],b=>b.Vg('df'))},'olympe.df');olympe.sa.run([olympe.j.ba.Vb],a=>{olympe.j.MV(a)},'olympe.df');olympe.host={};const Qc=new Map,Rc=new Map;olympe.host.Xc=class{static register(a,b,...c){Qc.set(a,b);0<c.length&&Rc.set(a,c)}static create(a,b,c,d){const e=Qc.get(a);if(void 0===e)throw Error('Undefined UI element type: '+a);a=Rc.get(a);return void 0!==a?new e(b,c,...a.map(f=>Na(d,f))):new e(b,c)}};function Sc(a,b,c){a.V.debug('CREATE #',b,', type=',c);a.C.set(b,olympe.host.Xc.create(c,b,a.V,a.R))}function Tc(a,b,c,...d){const e=a.C.get(b);if(void 0!==e){a.V.R()<=olympe.gb.Ge.C.tp&&a.V.debug('CALL #'+b+', '+c+'('+Array.prototype.slice.call(d,0)+')');b=[];for(const f of d)if(void 0===f||null===f)b.push(f);else if(olympe.j.Zb(f))b.push(a.C.get(f.tD)||null);else if('function'===typeof f){const g=f,k=olympe.j.yb();b.push((...l)=>{k.lc()||g(...l)})}else b.push(f.valueOf());e[c].apply(e,b)}}
|
|
427
427
|
function Uc(a,b,c){++a.O;const d=a.O;Sc(a,d,c);const e=olympe.j.createNode(b,void 0,void 0,void 0,void 0,'Native('+d+')',!1,function(){var f=arguments.length-2;const g=Array.from({length:f}),k=[],l=arguments[f+1],m=d+'_'+l;this.D.has(m)&&this.D.get(m).destroy();for(let n=0;n<f;n++){let p=arguments[n];olympe.j.Zb(p)?(k.push(n),p=p.Tb):olympe.j.$m(p)&&k.push(n);g[n]=p}0===k.length?e.run(()=>{Tc(this,d,l,...g)}):(f=olympe.j.createNode(void 0,(...n)=>{e.run(()=>{Tc(this,d,l,...n)})},void 0,g,k,'Native('+
|
|
428
|
-
d+').'+l),this.D.set(m,f),f.onDestroy(()=>this.D.delete(m)));return null}.bind(a));e.Ve(a.T.bind(a,d));a=Wb(e);a.tD=d;Ub(e,a);return a}olympe.host.Cc=class{constructor(a,b){this.V=a;this.R=b;this.O=0;this.C=new Map;this.D=new Map;a.debug('Starting host manager')}Cb(){return this.V}T(a){this.V.debug('DESTROY #',a);const b=this.C.get(a);this.C.delete(a);b.destroy()}};function Q(a,b){return a.Hg.run(b)}function Vc(a,b){return a.Hg.re(b)}olympe.host.Ui=class{constructor(a){this.Yh=a;this.Hg=olympe.j.yb()}vg(){return this.Yh}
|
|
428
|
+
d+').'+l),this.D.set(m,f),f.onDestroy(()=>this.D.delete(m)));return null}.bind(a));e.Ve(a.T.bind(a,d));a=Wb(e);a.tD=d;Ub(e,a);return a}olympe.host.Cc=class{constructor(a,b){this.V=a;this.R=b;this.O=0;this.C=new Map;this.D=new Map;a.debug('Starting host manager')}Cb(){return this.V}T(a){this.V.debug('DESTROY #',a);const b=this.C.get(a);this.C.delete(a);b.destroy()}};function Q(a,b){return a.Hg.run(b)}function Vc(a,b){return a.Hg.re(b)}olympe.host.Ui=class{constructor(a){this.Yh=a;this.Hg=olympe.j.yb()}vg(){return this.Yh}$f(){return this.Yh.Tb.$f()||this.Hg.$f()}lc(){return this.Yh.Tb.lc()}};olympe.host.Ui.prototype.vg.K=new olympe.j.J(()=>olympe.host.ab.Ui,[]);olympe.host.Kz=class{D(){}C(){}R(){}};olympe.host.gR=class{an(){}};function Wc(a,b,c){var d=olympe.host.wn;const e=c||olympe.oa.bf(),f=new olympe.j.ee('onTimeout context');d.C.$(b,e,()=>{f.lc()||f.$f()||f.run(a);d.C.C(e)});return new olympe.host.Th.D(d.C,e,f)}function Xc(a){var b=olympe.host.wn;a=a instanceof olympe.host.Th.D?a.ja():a;b.C.C(a)}function Yc(a,b){var c=olympe.host.wn;const d=olympe.oa.bf(),e=new olympe.j.ee('onInterval context');c.C.W(b,d,()=>{e.lc()||e.$f()?c.C.R(d):e.run(a)})}olympe.host.Th=class{constructor(a){this.C=Uc(a,olympe.host.ab.Th,olympe.host.ab.jb.CL)}};
|
|
429
429
|
olympe.host.Th.C=class{constructor(a,b,c){this.wn=a;this.id=b;this.C=null!=c?c:null}ja(){return this.id}cancel(){}};olympe.host.Th.R=class extends olympe.host.Th.C{cancel(){this.wn.T(this.id);let a;null==(a=this.C)||a.destroy();this.C=null}};olympe.host.Th.D=class extends olympe.host.Th.C{cancel(){this.wn.C(this.id);let a;null==(a=this.C)||a.destroy();this.C=null}};olympe.host.Th.O=class extends olympe.host.Th.C{cancel(){this.wn.R(this.id);let a;null==(a=this.C)||a.destroy();this.C=null}};olympe.host.WC=class{};olympe.host.WC.C={LIVENESS:'liveness',READINESS:'readiness',ALL:'all'};olympe.host.ab={};olympe.host.ab.Ui=class{destroy(){}};olympe.host.ab.Ui.prototype.destroy=olympe.host.ab.Ui.prototype.destroy;olympe.host.ab.jb={BF:100,UP:101,LZ:102,DF:103,CF:104,KZ:105,WK:201,Ez:202,pU:204,u1:205,UK:206,VK:207,XK:208,YK:209,ZK:210,$K:211,eD:212,t1:218,s1:219,aL:220,TK:221,SK:222,E1:300,F1:301,G1:302,pL:303,K1:304,L1:305,H1:310,I1:311,J1:312,N0:400,O0:401,P0:402,A0:450,CJ:500,AJ:501,EJ:502,DJ:503,BJ:504,RS:505,f2:600,W1:601,a2:602,S1:603,T1:604,Q1:605,V1:606,m2:607,d2:608,N1:609,R1:610,U1:611,c2:612,h2:613,O1:614,g2:615,b2:616,l2:617,X1:618,Y1:619,Z1:620,e2:630,P1:631,i2:632,j2:633,aM:700,EL:701,FL:702,
|
|
430
430
|
GL:703,IL:704,JL:705,KL:706,HL:707,ML:708,LL:709,NL:710,RL:711,ZL:712,OL:713,PL:714,SL:715,TL:716,VL:717,WL:718,YL:719,UL:720,XL:721,$L:722,QL:723,bM:724,cM:725,CL:800};olympe.host.ab.Th=class{T(){}$(){}C(){}W(){}R(){}};olympe.host.ba={Lt:'host.System',hH:'host.HistoryManager',GK:'host.Scheduler',Vb:'host.platform.Logger',Ob:'host.Manager',fo:'host.ProcessManager'};olympe.host.pa={Cz:'role',iH:'host.currentHost',W0:'host.processProbe',n1:'host.gracefulShutdownTimeout'};olympe.host.vr={tB:'active',At:'preview'};olympe.host.wn=null;
|
|
431
431
|
olympe.sa.$e(function(a){var b,c;const d='object'===typeof window&&(null==(b=window)?void 0:null==(c=b.location)?void 0:c.hostname)||'127.0.0.1';Qa(a,olympe.host.pa.iH,d);b=olympe.host.vr.tB;c=olympe.host.vr.At;E(a,olympe.host.pa.Cz,d.startsWith(`${c}.`)?c:b);Wa(a,olympe.host.ba.Lt);Wa(a,olympe.host.ba.hH);B(a,olympe.host.ba.fo,olympe.host.WC);C(a,olympe.host.ba.Vb,[olympe.gb.ba.Ob],e=>e.Vg('host'));B(a,olympe.host.ba.Ob,olympe.host.Cc,olympe.host.ba.Vb,olympe.sa.ba.rp);C(a,olympe.host.ba.GK,[olympe.host.ba.Ob],
|
|
@@ -437,10 +437,10 @@ olympe.Fa.Mv.gk={Pp:'POST',GET:'GET',XQ:'HEAD',eK:'PUT',Qg:'DELETE',lT:'OPTIONS'
|
|
|
437
437
|
b,a).finally(()=>{c.Lo(d);this.O.C.delete(b)})}R(){}W(){}Io(){}ca(){}};function gd(a){let b;return!(null==(b=a.C)||!b.connected)&&a.O}function hd(a){if(!a.options)throw Error('Cannot build connection options because the configuration is not available yet');const b=()=>({username:`${a.options.vhost}:${a.options.username}`,password:a.options.password});return Object.assign({},a.options,b(),{transformWsUrl:(c,d)=>{null!==a.options&&Object.assign(d,b());return c}})}
|
|
438
438
|
function id(a,b){if(!gd(a))return Promise.reject(Error('Cannot unsubscribe because the MQTT client is disconnected'));a.V.C()&&a.V.debug(`MQTT unsubscribe topic ${b}`);return new Promise((c,d)=>{a.C.unsubscribe(b,void 0,e=>{a.D.delete(b);e?d(e):c()})})}function jd(a,b){a.T.push(b)}function kd(a,b){a.R.push(b)}function ld(a,b){a.W.push(b)}
|
|
439
439
|
olympe.Fa.eo=class{constructor(a){this.V=olympe.gb.Cb('MQTT');this.O=!1;this.C=this.options=null;this.R=[];this.W=[];this.ca=[];this.$=[];this.T=[];this.D=new Map;const b=olympe.oa.Promise.dA(()=>this.connect(),0);a.subscribe(c=>{this.V.C()&&this.V.debug('New MQTT configuration received',c);this.options=c;null!==c&&this.O&&(gd(this)?this.end(!1,()=>b().then()):b().then())})}connect(a){if(gd(this))return null==a||a(),this;a&&this.R.push(a);this.O=!0;null===this.C&&null!==this.options&&(this.C=mqtt.connect(this.options.url,
|
|
440
|
-
hd(this)),this.C.on(olympe.Fa.eo.La.SS,(b,c)=>{this.V.C()&&this.V.debug(`MQTT < ${c}`);this.D.has(b)?this.D.get(b)(JSON.parse(c.toString())):this.V.warn('There is no subscriber for topic '+b)}),this.C.on(olympe.Fa.eo.La.jQ,()=>{this.V.info('Mqtt client is connected to bus');this.R.forEach(b=>b())}),this.C.on(olympe.Fa.eo.La.JT,()=>{this.V.info('Mqtt client is reconnecting to bus ... ');null===this.options&&this.end(!1);this.W.forEach(b=>b())}),this.C.on(olympe.Fa.eo.La.
|
|
440
|
+
hd(this)),this.C.on(olympe.Fa.eo.La.SS,(b,c)=>{this.V.C()&&this.V.debug(`MQTT < ${c}`);this.D.has(b)?this.D.get(b)(JSON.parse(c.toString())):this.V.warn('There is no subscriber for topic '+b)}),this.C.on(olympe.Fa.eo.La.jQ,()=>{this.V.info('Mqtt client is connected to bus');this.R.forEach(b=>b())}),this.C.on(olympe.Fa.eo.La.JT,()=>{this.V.info('Mqtt client is reconnecting to bus ... ');null===this.options&&this.end(!1);this.W.forEach(b=>b())}),this.C.on(olympe.Fa.eo.La.we,b=>{this.V.error('Mqtt client error ',
|
|
441
441
|
b);this.$.forEach(c=>c(b))}),this.C.on(olympe.Fa.eo.La.jk,()=>{this.V.info('Mqtt client is offline');this.ca.forEach(b=>b())}),this.C.on(olympe.Fa.eo.La.iQ,()=>{this.V.info('Mqtt client is closed');this.T.forEach(b=>b())}),this.C.on(olympe.Fa.eo.La.wp,()=>{this.V.info('Mqtt client has ended')}));return this}publish(a,b,c){if(!gd(this))return Promise.reject(Error('Cannot publish message because the MQTT client is disconnected'));const d=JSON.stringify(b);this.V.C()&&this.V.debug(`MQTT > ${d}`);return new Promise((e,
|
|
442
442
|
f)=>{this.C.publish(a,d,c,g=>{g?f(Error('Failed to publish a message '+d)):e()})})}subscribe(a,b){if(!gd(this))return Promise.reject(Error('Cannot subscribe because the MQTT client is disconnected'));this.V.debug(`MQTT subscribe to topic ${a}`);return new Promise((c,d)=>{this.C.subscribe(a,void 0,e=>{e?d(Error(`Failed to subscribe to topic ${a}: ${e}`)):(this.D.set(a,b),c())})})}end(a,b){this.O=!1;this.D.clear();this.C?this.C.end(a,{},()=>{this.C=null;null==b||b()}):null==b||b();return this}};
|
|
443
|
-
olympe.Fa.eo.La={jQ:'connect',JT:'reconnect',SS:'message',iQ:'close',wp:'end',
|
|
443
|
+
olympe.Fa.eo.La={jQ:'connect',JT:'reconnect',SS:'message',iQ:'close',wp:'end',we:'error',jk:'offline'};function md(){return Promise.reject('Try to open a route on a web server using the browser implementation.')}olympe.Fa.hM=class{constructor(a){this.V=a}start(){return Promise.reject('Try to start web server with the browser implementation.')}stop(){return Promise.reject('Try to stop web server with the browser implementation.')}};olympe.Fa.hM.ALL='*';olympe.Fa.gl=class{O(){return!1}register(){return q(function*(){throw Error('Service Worker Manager must be overridden by a native layer: called "register"');})}C(){console.error('Service Worker Manager must be overridden by a native layer: called "addUrlToCache"')}W(){console.error('Service Worker Manager must be overridden by a native layer: called "postMessage"')}};olympe.Fa.ba={Ob:'net.Manager',Vb:'net.Logger',rD:'net.WebServer',Dz:'net.ServiceWorkerManager',lz:'net.OfflineConfig'};olympe.Fa.pa={Jp:'net.httpPort',dR:'net.httpBodyLimit',NU:'net.http2',bR:'net.httpsCertificatesPath',EC:'net.localNetworkSuffix',mz:'offline.enabled',MC:'offline.autoBackOnline',SJ:'offline.downloadBatchSize'};
|
|
444
444
|
olympe.sa.$e(function(a){E(a,olympe.Fa.pa.Jp,3141);E(a,olympe.Fa.pa.dR,100);E(a,olympe.Fa.pa.NU,!1);E(a,olympe.Fa.pa.bR,null);E(a,olympe.Fa.pa.EC,'frontend');E(a,olympe.Fa.pa.mz,!1);E(a,olympe.Fa.pa.MC,!1);E(a,olympe.Fa.pa.SJ,20);Wa(a,olympe.Fa.ba.Ob);C(a,olympe.Fa.ba.Vb,[olympe.gb.ba.Ob],b=>b.Vg('net'));B(a,olympe.Fa.ba.rD,olympe.Fa.hM,olympe.Fa.ba.Vb);B(a,olympe.Fa.ba.Dz,olympe.Fa.gl);C(a,olympe.Fa.ba.lz,[new olympe.sa.zb(olympe.Fa.pa.mz),new olympe.sa.zb(olympe.Fa.pa.MC)],(b,c)=>new Map([['offlineEnabled',
|
|
445
445
|
b],['offlineAutoBackOnline',!b||c]]))},'olympe.net');olympe.Fa.Zh={};function fd(a,b,c){const d=olympe.Fa.Rc.lk.SF,e=olympe.Fa.Rc.lk.XT,f=new AbortController;a.C.set(b,()=>f.abort());const g=c.le(),k=c.method;let l;return fetch(g,{method:k,headers:c.D(),body:null!=(l=c.body)?l:void 0,signal:f.signal}).then(m=>m.ok?nd(m,c.O).catch(n=>new olympe.Fa.Nv(`Error parsing response from ${g} with method ${k}: ${n.message}`,e,'Error handling response')):new olympe.Fa.Nv(`Error fetching data from ${g} with method ${k}`,m.status,m.statusText,m.headers)).catch(m=>'AbortError'===
|
|
446
446
|
m.name?new olympe.Fa.Nv('',d,'Request canceled'):new olympe.Fa.Nv(`Error connecting to ${g} with method ${k}`,e,'Failed to fetch:'+m.message))}
|
|
@@ -467,35 +467,35 @@ e&&c(e)})})}function td(a){a.V.info('Disconnected from bus');let b;null==(b=a.C)
|
|
|
467
467
|
function ud(a){a.V.debug('Connection to bus established. Listening to responses on topic',a.R);return a.D.subscribe(a.R,b=>{a.V.C()&&a.V.debug('BUS <',JSON.stringify(b));zd(a,b.seq,'consumed');const c=olympe.Y.pd.D(b,a.Pa,d=>Ad(a,b.src,d).stream);zd(a,c.dk.toString(),'deserialized',(new Map).set('source',c.Sd()).set('messageType',c.getType().toString()));if(c.getType()===olympe.Y.pd.C.el)Bd(a,c);else{let d;null==(d=a.O.get(c.dk))||d(c)}})}
|
|
468
468
|
function vd(a){a.V.debug(`Connected to bus: subscribe to ${a.da.size} active topics.`);a.da.forEach((c,d)=>{yd(a,d,c).catch(e=>{a.V.error(`Failed to subscribe topic after connecting to the bus, with error: ${e}`)})});let b;null==(b=a.C)||b.forEach((c,d)=>{null===c.D&&(a.V.debug(`Connected to bus: start keep alive of ${c.Qc()} subscriptions for ${d} service.`),Dd(c,!0))});a.W.forEach(c=>c(null));a.W=[]}
|
|
469
469
|
function zd(a,b,c,d=new Map){a.sb.C&&pb(a.sb,'com',d.set('id',`${b}`).set('channel','bus').set('eventType',c))}function Ad(a,b,c){const d=`${b}:${c}`;b=a.za.get(d);b||(b=new olympe.Y.ZJ(()=>a.za.delete(d)),a.za.set(d,b));return b}
|
|
470
|
-
function Bd(a,b){const c=olympe.Y.il.Xq,d=olympe.Y.il.wp,e=olympe.Y.il.
|
|
470
|
+
function Bd(a,b){const c=olympe.Y.il.Xq,d=olympe.Y.il.wp,e=olympe.Y.il.we,f=b.C,{id:g,e:k}=f,l=`${b.Sd()}:${g}`,m=Ad(a,b.Sd(),g);if(k===c){ib(a.za.C,l);const {i:n,c:p}=f;m.write(p,n).catch(r=>{m.throw(r)})}else k===d?m.complete(f.s):k===e&&m.throw(Error(`Received stream error: ${f.reason}`))}function Ed(a,b,c,d){const e=Fd(a.T).Ci();a.$++;return new olympe.Y.Gz(b,a.R,e,a.$,c,d)}
|
|
471
471
|
function Gd(a,b,c,d){const e=b.dk;let f=null;f=setTimeout(()=>Hd(a,e),a.xb);a.O.set(e,g=>{f&&clearTimeout(f);g.getType()===olympe.Y.pd.C.sB?f=setTimeout(()=>Hd(a,e),d):(a.O.delete(e),c(g))})}function Id(a,b,c,d,e){const f=Ed(a,b,c,d);d=olympe.Y.pd.C.sB;if(c===olympe.Y.pd.C.PUBLISH){const g=new olympe.Y.pd(b,a.R,f.dk,d);return a.publish(f).then(()=>g)}return new Promise((g,k)=>{Gd(a,f,g,null!=e?e:a.ob);a.publish(f).catch(k)})}
|
|
472
|
-
function Hd(a,b){const c=a.O.get(b);a.O.delete(b);null==c||c(new olympe.Y.pd(a.R,a.R,b,olympe.Y.pd.C.
|
|
472
|
+
function Hd(a,b){const c=a.O.get(b);a.O.delete(b);null==c||c(new olympe.Y.pd(a.R,a.R,b,olympe.Y.pd.C.we,{reason:'Timeout'}))}function Jd(a,b){a.$++;const c=a.$,d=setTimeout(()=>Hd(a,c),a.xb);a.O.set(c,e=>{a.O.delete(c);clearTimeout(d);b(e)});return a.$}function Kd(a,b){return q(function*(){let c;const d=null==(c=a.C)?void 0:c.get(b);d&&(Cd(d),a.C.delete(b));a.da.delete(b);a.V.debug(`Bus: Unsubscribe to ${b}`);wd(a)&&(yield id(a.D,a.ma+b))})}
|
|
473
473
|
function Ld(a,b,c,d,e){null===a.C&&(a.C=new Map);let f=a.C.get(b);f?(a=f,a.O!==d&&(a.O=d,null!==a.D&&(Cd(a),Dd(a,!1)))):(f=new olympe.Y.yU(a.V,a,b,d),a.C.set(b,f));d=f;d.C.set(c,e);1===d.C.size&&Dd(d,!1)}function Md(a,b,c){var d;const e=null==(d=a.C)?void 0:d.get(b);if(null==e?0:Nd(e,c))d=olympe.Y.pd.C.pD,wd(a)&&a.publish(Ed(a,b,d,c)).catch(f=>a.V.error(`Impossible to keep alive subscriptions: ${f}`)),0===e.Qc()&&(a.C.delete(b),0===a.C.size&&(a.C=null))}
|
|
474
474
|
function Od(a,b){return new Promise((c,d)=>{a.T.xu(b.vk(),(e,f)=>{e?d(e):c(f)})})}
|
|
475
475
|
olympe.Y.NF=class{constructor(a,b,c,d,e,f,g,k){this.V=a;this.Oa=c;this.T=d;this.Pa=f;this.sb=g;this.O=new Map;this.xb=k.get('shortTimeout');this.ob=k.get('requestTimeout');this.Eb=k.get('subscriptionsRefreshRate');this.Ka=k.get('allowGuest');a=k.get('connection');b=this.T.C.wa().asObservable();c=c.Io().asObservable();c=rxjs.combineLatest([a,b,c]).pipe(rxjs.operators.map(([l,m,n])=>n.valueOf()?Object.assign({},l,{username:m.Lg(),password:m.Ci()}):null));this.D=new olympe.Fa.eo(c);sd(this);this.ma=
|
|
476
476
|
'';k.get('topicPrefix').subscribe(l=>{this.V.debug(`Bus: new topic prefix: ${l}`);const m=this.ma;this.ma=l;if(wd(this)){this.V.debug(`Resubscribe to queues with new topic prefix: ${l}`);Promise.all(Array.from(this.da).map(([p,r])=>{const t=this;return q(function*(){yield yd(t,p,r);yield id(t.D,m+p)})})).catch(p=>this.V.error(`Failed to subscribe topics after changing the topic prefix: ${p}`));let n;null==(n=this.C)||n.forEach(p=>{Pd(p)})}});this.Pb=this.$=0;this.R=olympe.oa.bf();this.C=null;this.ca=
|
|
477
477
|
!1;this.W=[];this.da=new Map;this.za=new olympe.oa.Nt(this.ob);this.Ha=!1}connect(){return new Promise((a,b)=>{const c=d=>{b(d);this.W.forEach(e=>e(d));this.W=[]};wd(this)?a():this.ca||this.Ha?this.W.push(d=>d?b(d):a()):xd(this.Oa)?(this.Ha=!0,olympe.j.ls([this.T.mx()],d=>{this.Ha=!1;d.valueOf()||this.Ka?(this.Ka||Qd(this.T,()=>this.disconnect().then()),this.ca=!0,this.W.push(e=>e?b(e):a()),this.D.connect()):c(Error('Guest user is not allowed to connect to RabbitMQ, you can allow guest with the bus.allowGuest oConfig parameter!'))})):
|
|
478
478
|
c(Error('Cannot connect to the bus if working offline'))})}disconnect(){return new Promise(a=>{this.V.debug('Disconnecting from bus');this.T.ca.delete('busLogoutCallback');this.D.end(!1,()=>a())})}publish(a,b=!1){const c=this;return q(function*(){if(!c.ca||a.getType()!==olympe.Y.pd.C.Tk){wd(c)||(yield c.connect());var d=b?a.Yf():c.ma+a.Yf();try{zd(c,a.dk.toString(),'serialize');var e=a.fb(c.Pa,c.qc.bind(c,a));c.V.C()&&c.V.debug(`BUS > #${d}:`,JSON.stringify(e))}catch(f){throw Error(`An error occurred while serializing the message (seqId=${a.dk}): ${f}`);
|
|
479
|
-
}yield c.D.publish(d,e);zd(c,a.dk.toString(),'publish',(new Map).set('destination',a.Yf()).set('messageType',a.getType().toString()))}})}qc(a,b){const c=this.Pb++;(()=>{const d=this;return q(function*(){const e=m=>d.publish(new olympe.Y.pd(a.Yf(),a.Sd(),a.dk,olympe.Y.pd.C.el,m)),f=olympe.Y.il.Xq,g=olympe.Y.il.wp,k=olympe.Y.il.
|
|
479
|
+
}yield c.D.publish(d,e);zd(c,a.dk.toString(),'publish',(new Map).set('destination',a.Yf()).set('messageType',a.getType().toString()))}})}qc(a,b){const c=this.Pb++;(()=>{const d=this;return q(function*(){const e=m=>d.publish(new olympe.Y.pd(a.Yf(),a.Sd(),a.dk,olympe.Y.pd.C.el,m)),f=olympe.Y.il.Xq,g=olympe.Y.il.wp,k=olympe.Y.il.we;let l=0;try{for(const m=ia(b);;){const n=yield m.next();if(n.done)break;const p=n.value;yield e({id:c,i:l++,e:f,c:p})}yield e({id:c,s:l,e:g})}catch(m){yield e({id:c,e:k,reason:`Error to complete the stream: ${m}`})}})})();
|
|
480
480
|
return c}ai(a,b,c){return this.send(a.dk,a.Sd(),b,c,!0)}send(a,b,c,d,e){return this.publish(new olympe.Y.pd(b,this.R,a,c,d),e)}};olympe.Y.NF.C='Timeout';const Rd=olympe.Fa.Rc.Headers.xF,Sd=olympe.Fa.Rc.lk.TJ,Td=olympe.Fa.Rc.lk.lQ,Ud=olympe.Fa.Rc.lk.ny,Vd=olympe.Fa.Rc.lk.ZT,Wd=olympe.Fa.Rc.lk.SF,Xd=olympe.Fa.Rc.lk.OQ,Yd=olympe.Fa.Rc.lk.FU,Zd=olympe.Fa.Rc.lk.bT;function $d(a,b){let c;return null!=(c=a.O.get(b))?c:''}function ae(a,b,c,d=new Map){a.C.C&&pb(a.C,'com',d.set('id',`${b}`).set('channel','http').set('eventType',c))}
|
|
481
481
|
function be(a,b,c){if(null===b)return Promise.reject('No http request to send');cd(b,{[Rd]:c});const d=b.le();return rxjs.firstValueFrom(rxjs.defer(()=>{a.D++;const e=a.D;if(a.V.C()){const f=b.body;a.V.debug('HTTP >',d,`body: ${'string'===typeof f?f:typeof f}`)}ae(a,e,'request',(new Map).set('destination',b.le()).set('messageType',b.method.toString()));return a.R.C(b).then(f=>{ae(a,e,'reply');switch(f.jh()){case Sd:case Td:case Ud:var g=f.data;a.V.C()&&a.V.debug('HTTP <',f.jh(),`content: ${'string'===
|
|
482
482
|
typeof g?g:typeof g}`);return f;case Vd:throw f=`HTTP < Service provider for http request to ${b.le()} is overloaded, retry later`,a.V.warn(f),new olympe.Y.errors.aK(f);case Wd:return a.V.debug(`HTTP < request canceled (${b.le()}).`),f;case Xd:case Yd:throw f=`HTTP < request authorization denied: ${b.le()}`,a.V.error(f),new olympe.Y.errors.PU(f);case Zd:throw f=`HTTP < requested resource not found: ${b.le()}`,a.V.error(f),new olympe.Y.errors.OJ(f);default:g=`HTTP < Error: ${f.jh()}, ${f.statusText}`;
|
|
483
|
-
a.V.error(g);if(500===f.jh()&&'Connection refused'===f.statusText)throw new olympe.Y.errors.cG(g);throw Error(g);}})}).pipe(qb(olympe.Y.errors.aK,(e,f)=>{a.V.warn(`Service overloaded (${d}), retry sending http request after ${f}ms.`)},a.T)))}olympe.Y.aR=class{constructor(a,b,c,d,e){this.V=a;this.R=b;this.C=c;this.O=null;d.subscribe(f=>{this.O=f});this.T=e;this.D=0}};function ce(a,b){if(a.C!==b)switch(a.V.debug('State change '+a.C+' --\x3e '+b),a.C=b,a.ob.forEach(c=>c(b)),b){case olympe.Y.Mc.C.Tz:case olympe.Y.Mc.C.CONNECTING:case olympe.Y.Mc.C.sG:break;case olympe.Y.Mc.C.Vq:a.ma.update(olympe.j.ia.C);break;case olympe.Y.Mc.C.sr:a.R=[0,0,a.R[2]];de(a);break;case olympe.Y.Mc.C.
|
|
483
|
+
a.V.error(g);if(500===f.jh()&&'Connection refused'===f.statusText)throw new olympe.Y.errors.cG(g);throw Error(g);}})}).pipe(qb(olympe.Y.errors.aK,(e,f)=>{a.V.warn(`Service overloaded (${d}), retry sending http request after ${f}ms.`)},a.T)))}olympe.Y.aR=class{constructor(a,b,c,d,e){this.V=a;this.R=b;this.C=c;this.O=null;d.subscribe(f=>{this.O=f});this.T=e;this.D=0}};function ce(a,b){if(a.C!==b)switch(a.V.debug('State change '+a.C+' --\x3e '+b),a.C=b,a.ob.forEach(c=>c(b)),b){case olympe.Y.Mc.C.Tz:case olympe.Y.Mc.C.CONNECTING:case olympe.Y.Mc.C.sG:break;case olympe.Y.Mc.C.Vq:a.ma.update(olympe.j.ia.C);break;case olympe.Y.Mc.C.sr:a.R=[0,0,a.R[2]];de(a);break;case olympe.Y.Mc.C.we:let c;a.V.error('Connection to server',null==(c=a.W)?void 0:c.le(),'aborted due to error');a.ma.update(olympe.j.ia.pb);break;case olympe.Y.Mc.C.rF:de(a);break;case olympe.Y.Mc.C.hi:a.ma.update(olympe.j.ia.pb);
|
|
484
484
|
break;default:throw Error('State machine error in server manager. Should not get in state '+b);}}
|
|
485
485
|
function ee(a){const b=olympe.Y.Mc.C.rF,c=olympe.Y.Mc.C.Tz,d=olympe.Y.Mc.C.hi,e=ad(a.da);a.V.info(`Trying to wakeup orchestrator with ${e}`);ce(a,c);const f=a.Eb.R(a.da);f.ca(g=>{const k=JSON.parse(g);a.V.info(`${e}: ${null==k?void 0:k.status}`);switch(null==k?void 0:k.status){case 'ready':ce(a,b);f.close();break;case 'asleep':a.V.info(`Trying to wakeup orchestrator with ${e}`);f.send('{"action": "wakeup"}');ce(a,c);break;case 'waking-up':break;default:a.V.warn(`Invalid message from ${e}: ${g}`),
|
|
486
486
|
f.close(),ce(a,d)}});f.D(()=>{a.V.warn(`Communication with ${e} failed.`);f.close();ce(a,d)});f.da(()=>{a.V.info(`Checking orchestrator status with ${e}`);f.send('{"action": "status"}')})}
|
|
487
|
-
function fe(a,b){a.V.log('Initializing COMMUNICATION layer');if(a.V.C()){const c=['Server layer parameters:'];b.forEach((d,e)=>{c.push(e+'="'+d+'"')});a.V.debug(c.join('\n\t'))}ge(a,olympe.Y.xj.
|
|
487
|
+
function fe(a,b){a.V.log('Initializing COMMUNICATION layer');if(a.V.C()){const c=['Server layer parameters:'];b.forEach((d,e)=>{c.push(e+'="'+d+'"')});a.V.debug(c.join('\n\t'))}ge(a,olympe.Y.xj.we,c=>{switch(c.c){case olympe.Y.xt.HU:a.V.error('Unknown message sent to the server:',olympe.Y.Mc.Vf[c.s]);break;case olympe.Y.xt.LQ:a.V.error('Fatal error, the last message is probably too big according to the websocket config.'),a.O.forEach((d,e)=>{null!==d.yE&&he(a,e,c.i)})}});ge(a,olympe.Y.xj.Vf,c=>{c.c===
|
|
488
488
|
olympe.Y.xt.IT&&'boolean'===typeof c.a&&a.Yh.update(olympe.j.hc(c.a))});olympe.j.$a(a.ma,()=>{let c=!1;olympe.j.$a(a.Pa.C(),()=>{c&&(a.qc(),a.sb(),c=!1);Yc(a.qc.bind(a),a.ld);Yc(a.sb.bind(a),a.Ka)},()=>{a.R=[0,0,a.R[2]];c=!0})},()=>{a.$=null;Wc(a.sb.bind(a),a.Ka)});kb(a.T,(c,d)=>{d.throw(Error('Stream timeout'))});a.V.log('DONE initializing SERVER layer (waiting for NET layer connection to be opened)')}function ie(a){return a.C===olympe.Y.Mc.C.Vq}
|
|
489
489
|
function je(a,b,c,d=!1){const e=f=>{if(0===b.length||b.includes(f))d&&a.ob.delete(e),c(f)};a.ob.add(e);e(a.C)}function ke(a,b,c,d,e){a.za.C&&pb(a.za,'com',d.set('id',`${b}`).set('channel','ws').set('eventType',c),e)}
|
|
490
|
-
function de(a){const b=olympe.Y.Mc.C.INIT,c=olympe.Y.Mc.C.CONNECTING,d=olympe.Y.Mc.C.Vq,e=olympe.Y.Mc.C.hi,f=olympe.Y.Mc.C.sr,g=olympe.Y.Mc.C.Tz,k=olympe.Y.Mc.C.
|
|
490
|
+
function de(a){const b=olympe.Y.Mc.C.INIT,c=olympe.Y.Mc.C.CONNECTING,d=olympe.Y.Mc.C.Vq,e=olympe.Y.Mc.C.hi,f=olympe.Y.Mc.C.sr,g=olympe.Y.Mc.C.Tz,k=olympe.Y.Mc.C.we;if(null===a.W)a.V.warn('Trying to open a connection to the orchestrator without a valid server request. Ignoring...'),ce(a,e);else{null!==a.D&&(a.D.$(null),a.D.close());var l,m;a.V.log(`Asking NET layer for a connection to ${null==(l=a.W)?void 0:$c(l)}:${null==(m=a.W)?void 0:m.port}...`);a.D=a.Eb.R(a.W);a.D.da(a.Yc.bind(a));a.D.ca(a.vg.bind(a));
|
|
491
491
|
a.D.$(()=>{a.D=null;a.C===d?ce(a,f):a.C!==k&&a.C!==g&&ce(a,e)});a.da&&a.C===b&&a.D.D(()=>{a.D.D(null);a.C===c&&ee(a);a.da=null});a.C!==f&&ce(a,c)}}function le(a,b,c,d){const e=a.gd;a.gd++;c={message:{seqId:e,messageFamily:b,payload:c},Bm:d?me(d):null,yE:null};a.O.set(e,c);ke(a,e,'publish',(new Map).set('family',b));d=[olympe.Y.Mc.C.CONNECTING,olympe.Y.Mc.C.sr];(ie(a)||b===olympe.Y.xj.Wy&&d.includes(a.C))&&ne(a,e,c)}
|
|
492
492
|
function me(a){const b=olympe.Y.Mc.D.lw;return c=>{if(null!==c&&void 0!==c){var d=null,e=c.s;if(void 0!==e&&e!==b){d=void 0!==olympe.Y.Mc.Vf[e]?`Status code = ${e} [${olympe.Y.Mc.Vf[e]}]`:`Status code = ${e}`;e=olympe.Y.errors.BK;const f=c.error;'string'===typeof f&&0<f.length&&(f.includes('Message timeout')&&(e=olympe.Y.errors.Nz),d+=`\nReason:\n${f}`);d=new e('Rejected by orchestrator:\n'+d)}a(d,c)}}}
|
|
493
493
|
function ne(a,b,c){var d=c.message;a.V.C()&&a.V.debug('WS >',JSON.stringify(d.payload));(d=a.D.send(JSON.stringify(d)))?null===c.Bm?a.O.delete(b):c.yE=Date.now():olympe.j.Qa(a.Pa.C()).valueOf()&&ce(a,olympe.Y.Mc.C.sr);return d}function ge(a,b,c,d){void 0===d&&(d=olympe.oa.bf());let e=a.Ha.get(b);void 0===e&&(e=new Map,a.Ha.set(b,e));e.set(d,c);return d}function oe(a,b,c){a=a.Ha.get(b);void 0!==a&&a.delete(c)}
|
|
494
|
-
function he(a,b,c){if(a.O.has(b)){const {Bm:d}=a.O.get(b);a.O.delete(b);null==d||d({s:olympe.Y.Mc.D.qR,error:c})}}function pe(a,b){a.V.error(b);ce(a,olympe.Y.Mc.C.
|
|
495
|
-
function re(a,b){const c=olympe.Y.il.Xq,d=olympe.Y.il.wp,e=olympe.Y.il.
|
|
494
|
+
function he(a,b,c){if(a.O.has(b)){const {Bm:d}=a.O.get(b);a.O.delete(b);null==d||d({s:olympe.Y.Mc.D.qR,error:c})}}function pe(a,b){a.V.error(b);ce(a,olympe.Y.Mc.C.we)}function qe(a,b,c){a.Pb=c?1E3*c:-1;let d;a.V.info(`Connected to ${null==(d=a.W)?void 0:d.le()}`,'|',b?`server version: ${b}`:'','|',null!==c?`activity timeout: ${c}s`:'');b=Array.from(a.O).sort(([e],[f])=>e-f);for(const [e,f]of b)if(!ne(a,e,f))return;ce(a,olympe.Y.Mc.C.Vq)}
|
|
495
|
+
function re(a,b){const c=olympe.Y.il.Xq,d=olympe.Y.il.wp,e=olympe.Y.il.we,{id:f,e:g}=b;let k=a.T.get(f);k||(k=new olympe.Y.ZJ(()=>a.T.delete(f)),a.T.set(f,k));if(g===c){ib(a.T.C,f);const {i:l,c:m}=b;k.write(m,l).catch(n=>{k.throw(n)})}else g===d?k.complete(b.s):g===e&&k.throw(Error(`Received stream error: ${b.reason}`))}
|
|
496
496
|
olympe.Y.Mc=class{constructor(a,b,c,d,e,f,g,k){this.V=a;this.Eb=b;this.W=null;e.subscribe(l=>{this.W=l;l=olympe.Y.Mc.C.CONNECTING;if(this.C===olympe.Y.Mc.C.Vq||this.C===l){let m;null==(m=this.D)||m.close()}});this.da=this.D=null;e.subscribe(l=>{this.da=l;l=olympe.Y.Mc.C.hi;this.C===olympe.Y.Mc.C.Tz&&(ce(this,l),ee(this))});this.za=g;this.ld=k.get('pingInterval');this.Ka=k.get('messageTimeout');this.ca=olympe.oa.so.parse(k.get('clientVersion'));this.Oa=olympe.oa.so.parse(k.get('serverVersion'));this.C=
|
|
497
|
-
olympe.Y.Mc.C.INIT;this.Pa=d;this.xb=k.get('getContextMode');this.gd=1;this.$=null;this.R=[0,0,0];this.Ha=new Map;this.ma=olympe.j.Za(olympe.j.ia,'Server is connected');this.Yh=M(olympe.j.Za(olympe.j.ia,'Server is readonly'),olympe.j.ia.pb);this.ob=new Set;this.O=new Map;this.T=new olympe.oa.Nt(this.Ka);this.kc=new Map;this.Pb=-1;fe(this,k)}connect(){const a=olympe.Y.Mc.C.Vq,b=olympe.Y.Mc.C.hi,c=olympe.Y.Mc.C.
|
|
498
|
-
[a,b,c],g=>{g===a?e():f(Error('Was not able to open a connection to the orchestrator'))},!0)})}disconnect(){return new Promise((a,b)=>{const c=olympe.Y.Mc.C.sG,d=olympe.Y.Mc.C.hi,e=olympe.Y.Mc.C.CONNECTING,f=olympe.Y.Mc.C.
|
|
497
|
+
olympe.Y.Mc.C.INIT;this.Pa=d;this.xb=k.get('getContextMode');this.gd=1;this.$=null;this.R=[0,0,0];this.Ha=new Map;this.ma=olympe.j.Za(olympe.j.ia,'Server is connected');this.Yh=M(olympe.j.Za(olympe.j.ia,'Server is readonly'),olympe.j.ia.pb);this.ob=new Set;this.O=new Map;this.T=new olympe.oa.Nt(this.Ka);this.kc=new Map;this.Pb=-1;fe(this,k)}connect(){const a=olympe.Y.Mc.C.Vq,b=olympe.Y.Mc.C.hi,c=olympe.Y.Mc.C.we,d=olympe.Y.Mc.C.INIT;return new Promise((e,f)=>{this.C!==d&&this.C!==b||de(this);je(this,
|
|
498
|
+
[a,b,c],g=>{g===a?e():f(Error('Was not able to open a connection to the orchestrator'))},!0)})}disconnect(){return new Promise((a,b)=>{const c=olympe.Y.Mc.C.sG,d=olympe.Y.Mc.C.hi,e=olympe.Y.Mc.C.CONNECTING,f=olympe.Y.Mc.C.we;this.C===olympe.Y.Mc.C.Vq||this.C===e||this.C===c?(je(this,[d,f],g=>{g===d?a():b(Error('Was not able to disconnect'))},!0),this.C!==c&&(ce(this,c),this.D.close())):(ce(this,d),a())})}Yc(){this.V.debug('Websocket connected, sending handshake. Client version:',Gb(this.ca),'subscribeEverything:',
|
|
499
499
|
this.xb?'NO':'YES');le(this,olympe.Y.xj.Wy,{c:olympe.Y.xt.Wy,cv:Gb(this.ca),m:this.xb?0:1,s:this.$,b:this.Pa.R()},this.Hg.bind(this))}Hg(a,b){if(a)pe(this,'Error in receiving handshake response: '+a.message);else{this.V.debug('Handshake response received');var c=olympe.Y.Mc.O;a=b.sv||'undefined';var d=b.activityTimeout?Math.max(b.activityTimeout-60,5):null;switch(b.status){case c.rR:pe(this,`Framework version (${Gb(this.ca)}) provided to the orchestrator was not valid. See orchestrator logs for more info.`);
|
|
500
500
|
return;case c.AU:pe(this,`Framework version (${Gb(this.ca)}) is not compatible with the orchestrator in use. See orchestrator logs for more info.`);return;case c.SQ:pe(this,'Handshake failed. See orchestrator logs for more info.');return}if(this.Oa.Rb(olympe.oa.so.C))this.V.warn('Handshake successful but received server version',a,'is invalid. Cannot check against it');else try{var e=olympe.oa.so.parse(a);if(e.ey(this.Oa)){pe(this,`Framework v${Gb(this.ca)} is expecting Orchestrator to be at least in v${Gb(this.Oa)}`);
|
|
501
501
|
return}this.V.log('Handshake successful. Orchestrator version: ',JSON.stringify(e),'required:',Gb(this.Oa))}catch(f){pe(this,f);return}e=olympe.Y.Mc.C.hi;if(this.C===olympe.Y.Mc.C.sr&&null!==this.$&&this.$!==b.sessionId)this.V.warn('Trying to do a session recovering, but got another session id so retry from disconnected state'),ce(this,e);else{if(e=b.identityProviders)for(const [f,g]of Object.entries(e))this.kc.set(f,g);this.$=b.sessionId||null;qe(this,a,d)}}}qc(){this.R[0]-this.R[1]>this.ld/2?(this.V.debug('Ping did not get answer, try to reconnect'),
|
|
@@ -507,7 +507,7 @@ setTimeout(()=>a.connect().catch(l=>a.V.error(l)),g)}else a.V.info('Disconnected
|
|
|
507
507
|
olympe.Y.mf=class{constructor(a,b,c,d,e,f){this.V=a;this.O=b;this.storage=e;this.C=olympe.j.Za(Number).update(olympe.Y.mf.C.INIT);this.D=f.get('offlineEnabled');this.T=f.get('offlineAutoBackOnline');this.R=f.get('storagePrefix');se(this,f)}Io(){const a=olympe.Y.mf.C.nr,b=olympe.Y.mf.C.jk,c=olympe.Y.mf.C.hi;let d=olympe.j.ia.pb;return olympe.j.Xa([this.C],e=>{if(e===a)d=olympe.j.ia.C;else if(e===b||e===c)d=olympe.j.ia.pb;return d},olympe.j.ia)}getState(){return this.C.wa()}connect(){const a=this;return q(function*(){const b=
|
|
508
508
|
olympe.Y.mf.C.nr,c=olympe.Y.mf.C.RC;olympe.j.Qa(a.C)!==b&&(a.C.update(c),a.storage.delete(a.R+'olympe_manual_offline'),yield a.O.connect(),yield ue(),a.C.update(b))})}disconnect(){const a=this;return q(function*(){const b=olympe.Y.mf.C.jk,c=olympe.Y.mf.C.RC;if(!a.D)throw Error('Try to go offline manually while the process does not support it. Please add `offline.enabled=true` in the config');a.storage.set(a.R+'olympe_manual_offline','true');olympe.j.Qa(a.C)!==b&&(a.C.update(c),yield olympe.Y.mu().disconnect(),
|
|
509
509
|
yield a.O.disconnect())})}};olympe.Y.mf.C={INIT:0,RC:1,nr:2,jk:3,hi:4,fU:5};olympe.Y.mf.D='olympe_manual_offline';olympe.Y.pd=class{constructor(a,b,c,d,e){this.dk=c;this.D=a;this.source=b;this.messageType=d;this.C=null!=e?e:null}static D(a,b,c){let d;var e=olympe.Y.pd,f=a.dest,g=a.src,k=a.seq,l=a.type;b.T=c;return new e(f,g,k,l,b.W(null!=(d=a.content)?d:null))}Yf(){return this.D}Sd(){return this.source}getType(){return this.messageType}fb(a,b){const c={dest:this.D,src:this.source,seq:this.dk,type:this.messageType};null!==this.C&&(a.$=b,c.content=a.fb(this.C));return c}toString(){return`Message(dest: ${this.D}, src: ${this.source}, seqId: ${this.dk}, type: ${this.messageType})`}};
|
|
510
|
-
olympe.Y.pd.C={SEND:0,GET:1,SUBSCRIBE:2,PUBLISH:3,DL:4,el:5,jD:6,
|
|
510
|
+
olympe.Y.pd.C={SEND:0,GET:1,SUBSCRIBE:2,PUBLISH:3,DL:4,el:5,jD:6,we:7,sB:10,IK:11,rL:12,Tk:13,pD:14};olympe.Y.Gz=class extends olympe.Y.pd{constructor(a,b,c,d,e,f){super(a,b,d,e,f);this.O=c}static D(a,b,c){let d;var e=olympe.Y.Gz,f=a.dest,g=a.src,k=a.auth,l=a.seq,m=a.type;b.T=c;return new e(f,g,k,l,m,b.W(null!=(d=a.content)?d:null))}vk(){return this.O}fb(a,b){return Object.assign(super.fb(a,b),{auth:this.O})}};olympe.Y.Gz.xt={SEND:0,GET:1,PUBLISH:2,SUBSCRIBE:3,Tk:4,pD:5};const ve=olympe.Y.pd.C.SEND,we=olympe.Y.pd.C.GET,xe=olympe.Y.pd.C.SUBSCRIBE,ye=olympe.Y.pd.C.Tk,ze=olympe.Y.pd.C.IK,Ae=olympe.Y.pd.C.we,Be=olympe.Y.pd.C.DL,Ce=olympe.Y.pd.C.jD,De=olympe.Y.pd.C.rL;
|
|
511
511
|
olympe.Y.uh=class{constructor(a,b,c){this.C=a;this.Na=b;this.O=c;this.D=null}qv(){return null!==this.D?Promise.resolve(this.D):Od(this.Na,this.C).then(a=>this.D=a)}UO(){return this.C.getType()}source(){return this.C.Sd()}body(){return this.C.C}nM(){return this.C.getType()===ve?this.Na.ai(this.C,ze):Promise.reject('Should only call `ack` on SEND requests')}ai(a){const b=this.C.getType();return b===we||b===ye?this.Na.ai(this.C,Be,a):Promise.reject('Should only call `reply` on GET requests')}jE(a){if(this.C.getType()!==
|
|
512
512
|
xe)return Promise.reject('Should only call `notifyOn` on SUBSCRIBE requests');const b=olympe.oa.bf();return new Promise((c,d)=>{const e={seq:Jd(this.Na,f=>{switch(f.getType()){case De:Ee(this.O,b);c(b);break;case Ae:d(f.C.reason);break;default:d('Unsupported response type for a SUBSCRIBE request')}}),topic:a,id:b,refresh:this.Na.Eb};this.Na.ai(this.C,Ce,e).catch(d)})}gu(a){return this.Na.ai(this.C,Ae,{reason:a.message})}};olympe.Y.uh.prototype.fail=olympe.Y.uh.prototype.gu;
|
|
513
513
|
olympe.Y.uh.prototype.notifyOn=olympe.Y.uh.prototype.jE;olympe.Y.uh.prototype.reply=olympe.Y.uh.prototype.ai;olympe.Y.uh.prototype.ack=olympe.Y.uh.prototype.nM;olympe.Y.uh.prototype.body=olympe.Y.uh.prototype.body;olympe.Y.uh.prototype.source=olympe.Y.uh.prototype.source;olympe.Y.uh.prototype.requestType=olympe.Y.uh.prototype.UO;olympe.Y.uh.prototype.userTag=olympe.Y.uh.prototype.qv;function Pd(a){const b=olympe.Y.errors.Zv;a.C.forEach((c,d)=>{Nd(a,d);null==c||c(new b(`Subscription ${d} to be refreshed`,d))})}function Cd(a){if(null!==a.D){var b=a.D;a.D=null;clearInterval(b)}}function Dd(a,b){b&&a.xn();null===a.D&&(a.D=setInterval(a.xn.bind(a),a.O))}function Nd(a,b){b=a.C.delete(b);0===a.C.size&&Cd(a);return b}function Fe(a,b){a.C.forEach((c,d)=>{Nd(a,d);c(b)})}
|
|
@@ -516,15 +516,15 @@ olympe.Y.Mf=class{constructor(){this.T=this.$=null}fb(a){a=this.D(a);this.$=null
|
|
|
516
516
|
Map:return a=Object.fromEntries(Array.from(a).map(([c,d])=>[c,this.D(d)])),Ge(olympe.Y.Mf.C.yJ,a);case a instanceof Set:return a=Array.from(a).map(this.D.bind(this)),Ge(olympe.Y.Mf.C.zr,a);case Array.isArray(a):return a.map(this.D.bind(this));case a instanceof ArrayBuffer:return a=olympe.oa.Dj().C(new Uint8Array(a)),Ge(olympe.Y.Mf.C.ARRAY_BUFFER,a);case a instanceof Uint8Array:return a=olympe.oa.Dj().C(a),Ge(olympe.Y.Mf.C.Pt,a);case a instanceof olympe.oa.stream.lo:if(!this.$)throw Error('No stream handler has been set, so cannot serialize the stream.');
|
|
517
517
|
let b;return Ge(olympe.Y.Mf.C.el,null==(b=this.$)?void 0:b.call(this,a));case 'object'===typeof a:return a=Object.entries(a).reduce((c,[d,e])=>{c[d]=this.D(e);return c},{}),Ge(olympe.Y.Mf.C.QJ,a);default:throw Error(`Impossible to serialize the following value: ${a}`);}}C(a){switch(!0){case null===a:case void 0===a:return null;case 'string'===typeof a:case 'boolean'===typeof a:case 'number'===typeof a:return a}if(Array.isArray(a))return a.map(d=>this.C(d));if('object'!==typeof a)throw new olympe.Y.errors.xG(`Impossible to deserialize the following value: ${a}`);
|
|
518
518
|
const {t:b,v:c}=a;switch(b){case olympe.Y.Mf.C.PB:return new Date(c);case olympe.Y.Mf.C.COLOR:return olympe.j.Color.ke(c);case olympe.Y.Mf.C.yJ:return new Map(Object.entries(c).map(([e,f])=>[e,this.C(f)]));case olympe.Y.Mf.C.zr:return new Set(c.map(e=>this.C(e)));case olympe.Y.Mf.C.ARRAY_BUFFER:return olympe.oa.Dj().D(c).buffer;case olympe.Y.Mf.C.Pt:return olympe.oa.Dj().D(c);case olympe.Y.Mf.C.el:if(!this.T)throw Error('No stream handler has been set, so cannot deserialize the stream.');let d;return null==
|
|
519
|
-
(d=this.T)?void 0:d.call(this,c);case olympe.Y.Mf.C.QJ:return Object.entries(c).reduce((e,[f,g])=>{e[f]=this.C(g);return e},{});default:throw new olympe.Y.errors.xG(`Impossible to deserialize the following value: ${c}`);}}};olympe.Y.Mf.C={PB:1,COLOR:2,yJ:3,zr:4,ARRAY_BUFFER:5,Pt:6,el:7,QJ:8};const He=olympe.Y.pd.C.SEND,Ie=olympe.Y.pd.C.GET,Je=olympe.Y.pd.C.PUBLISH,Ke=olympe.Y.pd.C.SUBSCRIBE,Le=olympe.Y.pd.C.Tk,Me=olympe.Y.pd.C.pD,Ne=olympe.Y.pd.C.IK,Oe=olympe.Y.pd.C.sB,Pe=olympe.Y.pd.C.
|
|
519
|
+
(d=this.T)?void 0:d.call(this,c);case olympe.Y.Mf.C.QJ:return Object.entries(c).reduce((e,[f,g])=>{e[f]=this.C(g);return e},{});default:throw new olympe.Y.errors.xG(`Impossible to deserialize the following value: ${c}`);}}};olympe.Y.Mf.C={PB:1,COLOR:2,yJ:3,zr:4,ARRAY_BUFFER:5,Pt:6,el:7,QJ:8};const He=olympe.Y.pd.C.SEND,Ie=olympe.Y.pd.C.GET,Je=olympe.Y.pd.C.PUBLISH,Ke=olympe.Y.pd.C.SUBSCRIBE,Le=olympe.Y.pd.C.Tk,Me=olympe.Y.pd.C.pD,Ne=olympe.Y.pd.C.IK,Oe=olympe.Y.pd.C.sB,Pe=olympe.Y.pd.C.we,Qe=olympe.Y.pd.C.DL,Re=olympe.Y.pd.C.jD;function Ee(a,b){a.C||(a.C=jb(new olympe.oa.nD(a.Na.Eb+3E4),c=>{let d;null==(d=a.D)||d.call(a,c)}));a.C.add(b)}
|
|
520
520
|
function Se(a,b){const c=olympe.Y.pd.C.jD,d=olympe.Y.pd.C.rL;return b.getType()!==c?Promise.reject('Should only call `topicAck` on TOPIC responses'):a.send(b.C.seq,b.Sd(),d,null,!0)}function Te(a){let b,c;a=null!=(c=null==(b=a.C)?void 0:b.reason)?c:'Unknown reason';return'Timeout'===a?new olympe.Y.errors.Nz(a):Error(a)}
|
|
521
|
-
olympe.Y.de=class{constructor(a,b){this.Na=olympe.Y.mu();this.O=a;this.D=this.C=null;this.R=new olympe.j.ee(`Service ${a}`,'function'===typeof b.
|
|
521
|
+
olympe.Y.de=class{constructor(a,b){this.Na=olympe.Y.mu();this.O=a;this.D=this.C=null;this.R=new olympe.j.ee(`Service ${a}`,'function'===typeof b.se?b.se():b);this.V=olympe.gb.Cb(`Service ${this.O}`)}static observe(a,b,c,d={}){const e='function'===typeof b.se?b.se():b,f=olympe.Y.mu();return(new rxjs.Observable(g=>{let k=null,l=null;const m=()=>{g.complete();l&&Md(f,a,l);k&&Kd(f,k).catch(n=>olympe.gb.Cb('Service '+a).error('Failed to unsubscribe from a topic '+n))};e.Ve(m);Id(f,a,Ke,c,d.timeout).then(n=>
|
|
522
522
|
{switch(n.getType()){case Re:const p=n.C;k=p.topic;yd(f,k,r=>{r.getType()===Je?g.next(r.C):(g.error('Unsupported notification message. It should be a publish'),m())}).then(()=>{l=p.id;Ld(f,a,l,p.refresh,r=>g.error(r));Se(f,n).catch(r=>{g.error(`Was unable to ack the subscription: ${r}`);m()})}).catch(r=>{g.error(`Was not able to subscribe to notification topic ${k}: ${r}`);m()});break;case Pe:g.error(Te(n));break;default:g.error('Unsupported response type for a SUBSCRIBE request')}}).catch(n=>g.error(n));
|
|
523
523
|
return m})).pipe(qb(olympe.Y.errors.Zv,(g,k)=>{olympe.gb.Cb(`Service ${a}`).debug(`Subscribed to topic ${g.ja()} now that we are back online, after waiting for ${k}ms`);let l;null==(l=d.onRetry)||l.call(d)}))}wP(a){this.D=a;return this}stop(){this.R.destroy()}clear(){Kd(this.Na,this.O).catch(b=>this.V.error('Failed to unsubscribe from '+this.O+', error: '+b));if(this.D){let b;null==(b=this.C)||b.forEach(c=>{let d;return null==(d=this.D)?void 0:d.call(this,c)})}let a;null==(a=this.C)||a.clear()}static publish(a,
|
|
524
524
|
b){return q(function*(){yield Id(olympe.Y.mu(),a,Je,b)})}static send(a,b,c={}){return Id(olympe.Y.mu(),a,He,b,c.timeout).then(d=>{switch(d.getType()){case Ne:break;case Pe:throw Te(d);default:throw Error('Unsupported response type for a SEND request');}})}static get(a,b,c={}){return Id(olympe.Y.mu(),a,Ie,b,c.timeout).then(d=>{switch(d.getType()){case Qe:d=d.C;if(null!==d)return d;throw Error('No payload after request to service: '+a);case Pe:throw Te(d);default:throw Error('Unsupported response type for a GET request');
|
|
525
525
|
}})}Bu(){return new rxjs.Observable(a=>{const b=()=>{a.complete();this.clear()};this.R.onDestroy(b);yd(this.Na,this.O,c=>{const d=new olympe.Y.uh(c,this.Na,this);switch(c.getType()){case Le:var e=d.body().filter(g=>{let k;return!(null==(k=this.C)?0:ib(k,g))});d.ai(e).catch(g=>this.V.error('Not able to validate subscription keep alive',g));break;case Me:c=d.body();null==(e=this.C)||e.delete(c);let f;null==(f=this.D)||f.call(this,c);break;case Je:a.next(d);break;default:this.Na.ai(c,Oe).then(()=>a.next(d))}}).catch(c=>
|
|
526
526
|
{c='Failed to connect to the bus: '+c;this.V.error(c);a.error(Error(c))});return b})}};olympe.Y.de.prototype.listen=olympe.Y.de.prototype.Bu;olympe.Y.de.get=olympe.Y.de.get;olympe.Y.de.send=olympe.Y.de.send;olympe.Y.de.publish=olympe.Y.de.publish;olympe.Y.de.prototype.stop=olympe.Y.de.prototype.stop;olympe.Y.de.prototype.setUnsubscriptionHandler=olympe.Y.de.prototype.wP;olympe.Y.de.observe=olympe.Y.de.observe;olympe.Y.ZJ=class{constructor(a){this.C=0;this.buffer=[];this.size=null;this.stream=new olympe.oa.stream.lo;this.D=null!=a?a:()=>{}}write(a,b){const c=this;return q(function*(){if(b<c.C||null!==c.size&&b>=c.size)throw Error(`Received stream chunk with unexpected index = ${b}. That index has already been processed. Next expected once is ${c.C}`);for(c.buffer[b-c.C]=a;void 0!==c.buffer[0];){c.C++;const d=c.buffer.shift();yield c.stream.write(d)}c.C===c.size&&(c.D(),c.stream.complete())})}complete(a){if(null!==
|
|
527
|
-
this.size)throw Error('The stream has already been completed');if(a<this.C+this.buffer.length)throw Error(`The stream has already reached element n\u00b0${this.C+this.buffer.length}, specified index must be greater or equal to it.`);this.size=a;this.C===this.size&&(this.D(),this.stream.complete())}throw(a){this.D();this.stream.throw(a)}};olympe.Y.xj={Xq:1,tp:2,
|
|
527
|
+
this.size)throw Error('The stream has already been completed');if(a<this.C+this.buffer.length)throw Error(`The stream has already reached element n\u00b0${this.C+this.buffer.length}, specified index must be greater or equal to it.`);this.size=a;this.C===this.size&&(this.D(),this.stream.complete())}throw(a){this.D();this.stream.throw(a)}};olympe.Y.xj={Xq:1,tp:2,we:3,lr:4,RZ:5,Wy:6,Vf:7};olympe.Y.xt={Wy:1,HU:2,LQ:3,Tk:5,IT:1,JU:2};olympe.Y.il={Xq:0,wp:1,we:2};olympe.Y.Mc.C={INIT:'initialize',CONNECTING:'connecting',hi:'disconnected',sG:'disconnecting',Vq:'connected',sr:'reconnecting',Tz:'waking',rF:'awake',we:'error'};olympe.Y.Mc.O={TJ:1,SQ:-1,rR:-2,AU:-3};olympe.Y.Mc.D={lw:0,qR:23};
|
|
528
528
|
olympe.Y.Mc.Vf={0:'OK',1:'SRP Authentication First Step Failed',2:'SRP Authentication Last Step Failed',3:'SRP Authentication Bad Credentials',4:'AutoLogin Authentication Failed',5:'AutoLogin Authentication Token Invalid',6:'Logout Failed',7:'SAML Request Generation Failed',8:'SAML Authentication Save Failed',9:'Invalid SAML Response',10:'SAML User Not Found',11:'Transaction Failed',12:'GetContext Failed',13:'Notification Failed',15:'FileService Clean Failed',17:'Try to subscribe multiple times',
|
|
529
529
|
18:'Try to unsubscribe multiple times',21:'GraphDef Query Failed',22:'Client Request Invalid',23:'Internal Server Error',24:'File Retrieval Error',25:'File Does Not Exists',26:'Restore Failed',27:'Permission Error',14:'Handshake Failed',28:'Client Version Too Old',29:'Client Version Invalid Format',34:'Server overloaded, retry later',35:'Add token error',36:'Keep token alive error',37:'Unknown client message',39:'Fetch data while concurrency transaction'};olympe.Y.ba={bm:'com.ConnectivityManager',Jt:'com.ServerManager',IF:'com.BusManager',jC:'com.HttpManager',cl:'com.Serializer',Vb:'com.Logger',RK:'com.Source',zL:'com.Urls',R0:'com.peerFileSvcUrl'};
|
|
530
530
|
olympe.Y.pa={Hy:'defaultHost',YT:'server.host',$T:'server.port',aU:'server.ssl',JK:'server.basePath',fM:'server.wsPath',XC:'server.reconnectionDelay',cK:'server.pingInterval',eM:'server.messageTimeout',uK:'server.retryHttpOnOverload',IB:'server.clientVersion',MK:'server.serverVersion',bU:'server.wakeUpService',YP:'bus.host',ZP:'bus.path',$P:'bus.port',bQ:'bus.vhost',aQ:'bus.ssl',Tk:'bus.keepalive',NT:'bus.reschedulePings',hQ:'bus.clientId',fQ:'bus.clean',kQ:'bus.connectTimeout',JF:'bus.shortTimeout',
|
|
@@ -543,7 +543,7 @@ function Ve(a,b,c){const d=null==b?void 0:b.qm();if(b instanceof olympe.xa.rz){c
|
|
|
543
543
|
olympe.Y.xj.lr,Object.assign({},{c:olympe.xa.Uh.C.IS},d&&{idpName:d}),c)}function Xe(a,b,c,d){olympe.j.Qa(a.R.getState())===olympe.Y.mf.C.jk?d(new olympe.Y.errors.XJ('Working offline'),'Working offline'):(c.c=b,le(a.C,olympe.Y.xj.lr,c,d))}
|
|
544
544
|
function Ye(a,b,c){if(b.kr()!==olympe.xa.Tg.C.OAUTH2)c(Error('Only oAuth2 tokens can be refreshed'),null);else{var d=`?idpName=${b.qm()}&access_token=${We(b)}`;d=`${$d(a.vt,olympe.Y.xf.nz)}/refresh${d}`;d=ed(bd(d),olympe.Fa.Rc.ResponseType.JSON);be(a.vt,d,b.Ci()).then(e=>{(e=e.data)?(e=new olympe.xa.rz(b.Lg(),b.wk(),b.Ci(),e,b.qm()),c(null,e)):c(null,b)}).catch(e=>c(Error(e),null))}}
|
|
545
545
|
olympe.xa.Uh=class{constructor(a,b,c,d,e,f){this.V=a;this.C=b;this.vt=c;this.R=d;this.D=e;this.O=f;Ze(this.O).then(g=>{g&&this.O.db.remove('main','redirectTo').then(()=>{this.D.redirect(g,null,olympe.xa.Gt.C.GET)}).catch(k=>{this.V.error(`Error when trying to remove redirect key from AUTH storage: ${k}`)})}).catch(g=>{this.V.error(`Error when trying to get redirect key from AUTH storage: ${g}`)})}xn(a){le(this.C,olympe.Y.xj.lr,{c:olympe.xa.Uh.C.Tk},b=>a(b))}xu(a,b,c){const d=$d(this.vt,olympe.Y.xf.BL);
|
|
546
|
-
a=bd(`${d}/${a}`);be(this.vt,a,b).then(e=>c(null,e.data)).catch(e=>c(Error(e)))}};olympe.xa.Uh.C={lr:1,IS:2,
|
|
546
|
+
a=bd(`${d}/${a}`);be(this.vt,a,b).then(e=>c(null,e.data)).catch(e=>c(Error(e)))}};olympe.xa.Uh.C={lr:1,IS:2,we:3,Tk:5,lw:6,iR:10,sU:11,NP:12,SAML:13,UT:14,HS:20};function Qd(a,b){var c='busLogoutCallback';void 0===c&&(c=olympe.oa.pk());a.ca.set(c,b)}function Fd(a){return olympe.j.Qa(a.C.wa())}
|
|
547
547
|
function ue(){var a=olympe.xa.rk();const b=olympe.xa.Cc.C.oy,c=olympe.xa.Cc.C.INIT;$e(a,b);a.ma?(a.O=olympe.xa.Cc.O.Qs,a.V.log('Connector online, parameter auth.autoLogin=true --\x3e attempting to log with parameters'),af(a)):(a.O=olympe.xa.Cc.O.ow,a.V.log('Connector online, attempting to log with token'),bf(a));return rxjs.firstValueFrom(a.D.wa().asObservable().pipe(rxjs.operators.filter(d=>!(d===b||d===c)))).catch(()=>{})}
|
|
548
548
|
function cf(a){a.V.log('Initializing AUTH layer');let b=a.sb;if('object'===typeof location){const c=location.hash;let d=c.indexOf('authToken=');-1<d&&(b=c.substring(d+10),'&'===c[d-1]&&d--,location.hash=c.substring(0,d))}b&&a.storage&&df(a.storage,b).catch(c=>a.V.error(c));a.V.debug('Asking to be notified when auth connector gets online');olympe.j.Wa([a.za.getState()],c=>{switch(c){case olympe.Y.mf.C.jk:a.O=olympe.xa.Cc.O.ow;a.V.log('Connector offline, attempting to recover sessions from current token');
|
|
549
549
|
bf(a);break;case olympe.Y.mf.C.hi:switch(olympe.j.Qa(a.D)){case olympe.xa.Cc.C.Mn:c=olympe.j.Qa(a.C).Lg();ef(a,`Disconnected from server - session of user ${c} lost`);break;case olympe.xa.Cc.C.Gv:a.V.info('Disconnected from server - guest session lost');break;case olympe.xa.Cc.C.oy:ef(a,'Disconnected from server - authentication aborted');break;case olympe.xa.Cc.C.INIT:ef(a,'Cannot open auth session - no server connection');break;default:ef(a,'Should not get there, investigate',!0)}}});Ue(a.R,(c,
|
|
@@ -551,22 +551,22 @@ d)=>{if(c===olympe.xa.Cc.D.ny){ef(a,'authentication revoked');var e;null==(e=a.s
|
|
|
551
551
|
function hf(a,b){let c=null;olympe.j.$a(a.D.wa().Se(olympe.xa.Cc.C.Mn).and(b),()=>{const d=Fd(a);!jf(a)&&d&&(c=a.hj.get(d.kr()).R(d,(e,f)=>{e?(a.V.error('Failed to refresh token, error message: ',e.message),a.Cu().catch(g=>a.V.error(`Failed to logout after wrong refresh ${g}`))):f&&kf(a,f)}))},()=>{let d;null==(d=c)||d()})}
|
|
552
552
|
function bf(a){null!==a.storage?(a.V.debug('Retrieving token from local storage'),a.storage.vk().then(b=>{if(b){const e=new olympe.xa.Request;var c=b.Lg();e.set('username',c);c=e;var d=b.Ci();c.set('nonce',d);'string'===typeof b.qm()&&e.set('idpName',b.qm());a.V.debug('Token found, trying login with',e);lf(a,e,olympe.xa.Tg.C.NC)}else ef(a,'No token found, cannot perform auto login')}).catch(b=>{ef(a,b.message,!0)})):ef(a,'Cannot retrieve token: no storage configured, cannot perform auto login',!0)}
|
|
553
553
|
function ef(a,b,c=!1){a.C.update(a.$);$e(a,olympe.xa.Cc.C.Gv);b=`Authenticated as guest (${b})`;c?a.V.error(b):a.V.info(b)}function gf(a){const b=[olympe.xa.Cc.C.Mn];a.ma||b.push(olympe.xa.Cc.C.Gv)}function $e(a,b){a.V.log('State change: ',olympe.j.Qa(a.D.wa()),'--\x3e',b);a.D.update(b)}function af(a){if(a.W){const b=new olympe.xa.Request;b.set('username',a.W);mf(b,a.Ha);a.V.log('Autologin with user "'+a.W+'"');lf(a,b)}else ef(a,'No user specified for auto login',!0)}
|
|
554
|
-
function jf(a){return olympe.j.Qa(a.C)===a.$}function kf(a,b){if(b){a.C.update(b);let c;null==(c=a.storage)||df(c,b).catch(d=>a.V.error(d));a.V.debug('Token updated')}}function nf(){var a=olympe.public.Lc.get();return new Map(a.R.C.kc)}function of(a,b,c,d=!1){b=b+c?':'+c.message:'';a.V.error(b);a.error.update(olympe.j.ic(b));$e(a,olympe.xa.Cc.C.
|
|
554
|
+
function jf(a){return olympe.j.Qa(a.C)===a.$}function kf(a,b){if(b){a.C.update(b);let c;null==(c=a.storage)||df(c,b).catch(d=>a.V.error(d));a.V.debug('Token updated')}}function nf(){var a=olympe.public.Lc.get();return new Map(a.R.C.kc)}function of(a,b,c,d=!1){b=b+c?':'+c.message:'';a.V.error(b);a.error.update(olympe.j.ic(b));$e(a,olympe.xa.Cc.C.we);if(d)throw Error(b);}
|
|
555
555
|
function lf(a,b,c,d){void 0===c&&(c=a.Ka);void 0===c&&of(a,'No authentication provider specified',null,!0);const e=a.hj.get(c);e||of(a,'Undefined authentication provider "'+c+'"',null,!0);d&&a.T.set('login',d);a.V.log('Sending authentication request using "'+c+'" for '+b);e.vk(b,a.Oa.bind(a));$e(a,olympe.xa.Cc.C.oy)}function pf(a,b,c){a.T.forEach(d=>{d(b,c)})}
|
|
556
556
|
olympe.xa.Cc=class{constructor(a,b,c,d,e,f,g,k,l){this.V=a;this.za=b;this.R=c;this.storage=d;this.Pa=e;this.Ka=l.get('defaultProvider');this.ma=!!l.get('autoLogin');this.W=l.get('autoUser');this.Ha=l.get('autoPassword');this.sb=l.get('autoToken');this.hj=new Map;this.D=olympe.j.Za(String).update(olympe.xa.Cc.C.INIT);this.error=olympe.j.Za(olympe.j.kb);this.O=null;this.$=new olympe.xa.Fr('guest','0163d9653067b6237f62','e96e099c-55bb-4004-b0e8-bd76b6209218');this.C=olympe.j.Za(olympe.xa.Fr).update(this.$);
|
|
557
|
-
this.T=new Map;this.ca=new Map;this.da=new olympe.oa.Nt(l.get('cacheTokenTimeout'));k.forEach(m=>{const n=m.O();if(this.hj.has(n))throw Error('Provider "'+n+'" has already been registered !');this.hj.set(n,m)});cf(this);hf(this,g.C())}mx(){const a=olympe.xa.Cc.C.Mn,b=olympe.xa.Cc.C.Gv,c=olympe.xa.Cc.C.
|
|
557
|
+
this.T=new Map;this.ca=new Map;this.da=new olympe.oa.Nt(l.get('cacheTokenTimeout'));k.forEach(m=>{const n=m.O();if(this.hj.has(n))throw Error('Provider "'+n+'" has already been registered !');this.hj.set(n,m)});cf(this);hf(this,g.C())}mx(){const a=olympe.xa.Cc.C.Mn,b=olympe.xa.Cc.C.Gv,c=olympe.xa.Cc.C.we,d=olympe.j.Za(olympe.j.ia);olympe.j.Wa([this.D],e=>{e===a?d.update(olympe.j.ia.C):e===b?d.update(olympe.j.ia.pb):e===c?(this.V.error('Authentication failed.'),d.update(olympe.j.ia.pb)):d.clear()});
|
|
558
558
|
return d.wa()}Iq(a){if(olympe.j.Qa(this.D)===olympe.xa.Cc.C.Mn){var b=Fd(this);!jf(this)&&b&&this.hj.get(b.kr()).Iq(b,(c,d)=>{c?(this.V.error('Failed to refresh token, error message: ',c.message),this.Cu().catch(e=>this.V.error(`Failed to logout after wrong refresh ${e}`))):d&&kf(this,d);a(c)})}}getState(){return this.D.wa()}Lg(){return this.C.wa().Lg()}wk(){return this.C.wa().wk()}ou(){return this.C.wa().ou()}xu(a,b){if(ib(this.da.C,a))b(null,this.da.get(a));else{var c,d=null==(c=olympe.j.Qa(this.C.wa()))?
|
|
559
559
|
void 0:c.Ci();this.R.xu(a,d,(e,f)=>{'string'===typeof f&&this.da.set(a,f);b(e,f)})}}Cu(){return jf(this)?(this.V.warn('Logout called for Guest user so it will be ignored'),Promise.resolve()):new Promise((a,b)=>{this.V.debug('Sending logout');let c;null==(c=this.storage)||ff(c).catch(d=>this.V.error('Failed to clear token',d));Ve(this.R,Fd(this),d=>{d?(of(this,'Logout request rejected:',d),b(d)):(this.V.debug('Logout request acknowledged'),a())})})}xn(a){olympe.j.Qa(this.D.wa())===olympe.xa.Cc.C.Mn&&
|
|
560
560
|
this.R.xn(b=>{b&&this.V.error('Was not able to send the auth keep alive message:',b.message);null==a||a(b)})}Oa(a,b){const c=null===this.O?olympe.xa.Cc.O.Uf:this.O;this.O=null;if(!a||a instanceof olympe.Y.errors.XJ){null===a?this.V.info(`User ${b.Lg()} (#${b.wk()}) successfully authenticated`):this.V.info(`User ${b.Lg()} (#${b.wk()}) recovered from token, while offline`);this.C.update(b);$e(this,olympe.xa.Cc.C.Mn);pf(this,a,c);let d;null==(d=this.storage)||df(d,b).catch(e=>this.V.error(e))}else{let d;
|
|
561
|
-
null==(d=this.storage)||ff(d).catch(e=>this.V.error(e));this.error.update(olympe.j.ic(a.message));ef(this,'authentication rejected: '+a.message);pf(this,a,c)}this.T.has('login')&&this.T.delete('login')}};olympe.xa.Cc.C={INIT:'init',oy:'authenticating',Gv:'guest',Mn:'authenticated',
|
|
561
|
+
null==(d=this.storage)||ff(d).catch(e=>this.V.error(e));this.error.update(olympe.j.ic(a.message));ef(this,'authentication rejected: '+a.message);pf(this,a,c)}this.T.has('login')&&this.T.delete('login')}};olympe.xa.Cc.C={INIT:'init',oy:'authenticating',Gv:'guest',Mn:'authenticated',we:'error'};olympe.xa.Cc.O={Uf:'manual',Qs:'auto',ow:'tokenOnFirstConnection'};olympe.xa.Cc.D={ny:'accepted',tH:'redirect'};olympe.xa.Tg=class{constructor(a,b){this.V=a;this.D=b;this.C=null}O(){}vk(){}R(a,b){const c=()=>{this.C=setTimeout(()=>this.D.xn(d=>{d?b(d,null):(b(null,null),c())}),this.D.C.Pb)};c();return()=>{this.C&&clearTimeout(this.C);this.C=null}}Iq(a,b){this.D.xn(c=>{b(c,null)})}};olympe.xa.Tg.C={SAML:'saml',OAUTH2:'openID',SRP:'srp',NC:'olympeToken'};function mf(a,b){a.set('password',b)}function qf(a){return a.get('idpName')}
|
|
562
562
|
olympe.xa.Request=class{constructor(){this.attributes=new Map}set(a,b){olympe.j.Wa([b],c=>{this.attributes.set(a.toLocaleLowerCase(),c.toString())})}get(a){(a=this.attributes.get(a.toLowerCase()))&&a.Gh&&(a=F(a));return a?a.valueOf():a}Lg(){return this.get('username')}Ci(){return this.get('nonce')}toString(){return this.Lg()+(this.Ci()?' with nonce':'')+(this.get('password')?' with password':'')+(qf(this)?` with idp name ${qf(this)}`:'')}};olympe.xa.Fr=class{constructor(a,b,c,d={},e=null){this.O=a;this.qv=b;this.nonce=c;this.C=e;this.D=d}Lg(){return this.O}wk(){return this.qv}Ci(){return this.nonce}Rv(){return this.D}ou(){return null}qm(){return this.C}fb(){const a=olympe.oa.Dj(),b=Object.assign({},{user:this.O,userTag:this.qv,nonce:this.nonce},this.C&&{idpName:this.C},{payload:this.D});return olympe.oa.tM(eb(a,JSON.stringify(b)))}kr(){return olympe.xa.Tg.C.SRP}};h=olympe.xa.Fr.prototype;h.Lg.K=new olympe.j.J(()=>String,[]);
|
|
563
563
|
h.wk.K=new olympe.j.J(()=>String,[]);h.Ci.K=new olympe.j.J(()=>String,[]);h.Rv.K=new olympe.j.J(()=>Object,[]);h.ou.K=new olympe.j.J(()=>String,[]);h.qm.K=new olympe.j.J(()=>String,[]);h.fb.K=new olympe.j.J(()=>String,[]);h.kr.K=new olympe.j.J(()=>String,[]);function We(a){return a.Rv().access_token||null}function rf(a){return 1E3*parseInt(a.Rv().access_token_exp||'0',10)}olympe.xa.rz=class extends olympe.xa.Fr{constructor(a,b,c,d,e){super(a,b,c,d,e);this.R=Date.now()}ou(){return We(this)}kr(){return olympe.xa.Tg.C.OAUTH2}};olympe.xa.FK=class extends olympe.xa.Fr{constructor(a,b,c,d,e,f){super(a,b,c,e,f);this.R=d}ou(){return this.R}kr(){return olympe.xa.Tg.C.SAML}fb(){const a=olympe.oa.Dj(),b=Object.assign({},{user:this.Lg(),userTag:this.wk(),nonce:this.Ci()},this.qm()&&{idpName:this.qm()},{payload:this.Rv(),fullToken:this.R});return olympe.oa.tM(eb(a,JSON.stringify(b)))}};function Ze(a){let b;return null!=(b=a.db.get('main','redirectTo'))?b:null}function df(a,b){return a.D.C(()=>a.db.set('main','string'===typeof b?b:b.fb(),a.C).catch(c=>{throw Error(`Error when trying to set the token from the auth store: ${c}`);}))}function ff(a){return a.D.C(()=>a.db.remove('main',a.C).catch(b=>{a.V.error(`Error when trying to remove the token from the auth store: ${b}`)}))}
|
|
564
564
|
olympe.xa.QP=class{constructor(a,b,c){this.O=a;this.V=b;this.C='OlympeToken-'+c.C;this.D=new olympe.oa.promise.mw;this.db=this.O.D('AUTH',1,d=>{d.objectStoreNames.contains('main')&&d.deleteObjectStore('main');const e=d.createObjectStore('main');return new Promise((f,g)=>{e.transaction.oncomplete=()=>f();e.transaction.onerror=()=>g(e.transaction.error)})})}vk(){this.V.debug(`olympe.auth.AuthStorage: retrieve token with key ${this.C}`);return this.D.C(()=>{const a=this;return q(function*(){let b;try{b=
|
|
565
565
|
yield a.db.get('main',a.C)}catch(g){throw Error(`Error when trying to get the token from the auth store: ${g}`);}let c=null;if(b)try{a.V.debug('olympe.auth.AuthStorage: Token retrieved successfully');var d=JSON,e=d.parse;var f=fb(olympe.oa.Dj().D(olympe.oa.vV(b)));const g=e.call(d,f);let k;g.fullToken?k=new olympe.xa.FK(g.user,g.userTag,g.nonce,g.fullToken,g.payload,g.idpName):g.payload&&g.payload.id_token?k=new olympe.xa.rz(g.user,g.userTag,g.nonce,g.payload,g.idpName):k=new olympe.xa.Fr(g.user,
|
|
566
|
-
g.userTag,g.nonce,g.payload,g.idpName);c=k}catch(g){throw Error(`Error while unserializing token: ${g}`);}else a.V.debug('olympe.auth.AuthStorage: No token found');return c})})}};olympe.xa.Gt=class{redirect(){}D(){}C(){}};olympe.xa.Gt.C={GET:'GET',Pp:'POST'};olympe.xa.vF=class{constructor(a){this.C=a||'default'}};olympe.xa.hj={};function sf(a,b,c){Xe(a.D,olympe.xa.Uh.C.lr,{token:b.Ci()},(d,e)=>{if(null!==d)c(d,null);else switch(e.c){case olympe.xa.Uh.C.
|
|
566
|
+
g.userTag,g.nonce,g.payload,g.idpName);c=k}catch(g){throw Error(`Error while unserializing token: ${g}`);}else a.V.debug('olympe.auth.AuthStorage: No token found');return c})})}};olympe.xa.Gt=class{redirect(){}D(){}C(){}};olympe.xa.Gt.C={GET:'GET',Pp:'POST'};olympe.xa.vF=class{constructor(a){this.C=a||'default'}};olympe.xa.hj={};function sf(a,b,c){Xe(a.D,olympe.xa.Uh.C.lr,{token:b.Ci()},(d,e)=>{if(null!==d)c(d,null);else switch(e.c){case olympe.xa.Uh.C.we:c(Error('Invalid token'),null);break;case olympe.xa.Uh.C.lw:d=null;if(e=e.payload){const f=e.userName,g=e.userTag,k=e.rndCook,l=e.payload,m=e.protocol;'SAML'===m?d=new olympe.xa.FK(f,g,k,e.samlToken,l,qf(b)):'openid'===m&&(d=new olympe.xa.rz(f,g,k,l,qf(b)))}c(null,d);break;default:c(Error('Unknown response from server'),null)}})}
|
|
567
567
|
olympe.xa.hj.PS=class extends olympe.xa.Tg{constructor(a,b,c){super(a,b);this.storage=c}O(){return olympe.xa.Tg.C.NC}vk(a,b){this.storage.vk().then(c=>{sf(this,a,(d,e)=>{b(d,null!=e?e:c)})}).catch(c=>{b(c,null)})}};function tf(a,b,c){var d=rf(b);const e=Math.max(d-b.R,0),f=olympe.sa.getParameter(olympe.xa.pa.qL);d=Math.max(Math.round(d-e*(1-Math.max(Math.min((f||50)/100,.95),0))-Date.now()),0);if(0<d)return setTimeout(()=>{a.Iq(b,c)},d);a.Iq(b,c);return null}
|
|
568
|
-
olympe.xa.hj.qT=class extends olympe.xa.Tg{constructor(a,b,c,d){super(a,b);this.T=c;this.W=d}O(){return olympe.xa.Tg.C.OAUTH2}vk(a){const b=encodeURIComponent(this.T.C());a=qf(a)?`idpName=${qf(a)}&`:'';this.T.redirect(`${this.W}/auth?${a}url=${b}`,null,olympe.xa.Gt.C.GET)}R(a,b){0<rf(a)?this.C=tf(this,a,b):b(null,a);return this.$.bind(this)}Iq(a,b){Ye(this.D,a,(c,d)=>{c?b(c,null):d&&(b(null,d),this.C&&(this.C=tf(this,d,b)))})}$(){this.C&&clearTimeout(this.C);this.C=null}};function uf(a,b){Xe(a.D,olympe.xa.Uh.C.SAML,{},(c,d)=>{null!==c?b(c):d.url&&d.request?b(null,d.url,d.request.replace(/\s/g,''),d.id):b(Error('Missing parameters from server response'))})}olympe.xa.hj.SAML=class extends olympe.xa.Tg{constructor(a,b,c){super(a,b);this.T=c}O(){return olympe.xa.Tg.C.SAML}vk(a,b){uf(this,(c,d,e,f)=>{c?b(c,null):this.T.D(d,e,f,qf(a))})}};function vf(a,b,c){const d=olympe.xa.Uh.C.iR,e=olympe.xa.Uh.C.
|
|
569
|
-
function xf(a,b,c){const d=olympe.xa.Uh.C.NP,e=olympe.xa.Uh.C.
|
|
568
|
+
olympe.xa.hj.qT=class extends olympe.xa.Tg{constructor(a,b,c,d){super(a,b);this.T=c;this.W=d}O(){return olympe.xa.Tg.C.OAUTH2}vk(a){const b=encodeURIComponent(this.T.C());a=qf(a)?`idpName=${qf(a)}&`:'';this.T.redirect(`${this.W}/auth?${a}url=${b}`,null,olympe.xa.Gt.C.GET)}R(a,b){0<rf(a)?this.C=tf(this,a,b):b(null,a);return this.$.bind(this)}Iq(a,b){Ye(this.D,a,(c,d)=>{c?b(c,null):d&&(b(null,d),this.C&&(this.C=tf(this,d,b)))})}$(){this.C&&clearTimeout(this.C);this.C=null}};function uf(a,b){Xe(a.D,olympe.xa.Uh.C.SAML,{},(c,d)=>{null!==c?b(c):d.url&&d.request?b(null,d.url,d.request.replace(/\s/g,''),d.id):b(Error('Missing parameters from server response'))})}olympe.xa.hj.SAML=class extends olympe.xa.Tg{constructor(a,b,c){super(a,b);this.T=c}O(){return olympe.xa.Tg.C.SAML}vk(a,b){uf(this,(c,d,e,f)=>{c?b(c,null):this.T.D(d,e,f,qf(a))})}};function vf(a,b,c){const d=olympe.xa.Uh.C.iR,e=olympe.xa.Uh.C.we,f=olympe.xa.Uh.C.sU,g={I:b.Lg()};Xe(a.D,d,g,(k,l)=>{if(null!==k)c(k);else switch(l.c){case e:c(Error(`Username '${b.Lg()}' invalid, or password does not match`));break;case f:k=l.payload;c(null,k.S,k.B);break;default:c(Error('Unknown response from server'))}})}
|
|
569
|
+
function xf(a,b,c){const d=olympe.xa.Uh.C.NP,e=olympe.xa.Uh.C.we,f=olympe.xa.Uh.C.lw;b={A:b.get('a'),M:b.get('m1'),I:b.Lg()};Xe(a.D,d,b,(g,k)=>{if(null!==g)c(g,null);else switch(k.c){case e:a.V.debug('Login failed, invalid username or password');c(Error('Invalid username or password'),null);break;case f:g=k.payload;a.V.debug('Login successful, creating token');k=g.payload?JSON.parse(g.payload):void 0;c(null,new olympe.xa.Fr(g.userName,g.userTag,g.rndCook,k));break;default:c(Error(`Unknown response from server (type ${k.c})`),
|
|
570
570
|
null)}})}olympe.xa.hj.SRP=class extends olympe.xa.Tg{O(){return olympe.xa.Tg.C.SRP}vk(a,b){const c=a.get('password');a.attributes.delete('password');this.V.debug('Sending SRP request');vf(this,a,(d,e,f)=>{this.V.debug('Received Salt+B message');if(d)b(d,null);else{try{const g=new SRPClient;g.step1(a.Lg(),c);const k=g.step2(e,f);a.set('a',k.A);a.set('m1',k.M1)}catch(g){b(g,null);return}this.V.debug('Sending SRP A+M (proof) message');xf(this,a,b)}})}};olympe.xa.ba={Ob:'auth.Manager',Vb:'auth.Logger',kw:'auth.Storage',vB:'auth.appNameToken',Az:'auth.Redirector',KK:'auth.ServerConnector'};olympe.xa.pa={RB:'auth.defaultProvider',nF:'auth.autoLogin',pF:'auth.autoUser',oF:'auth.autoPassword',ow:'auth.token',PF:'auth.cacheTokenTimeout',qL:'auth.tokenDurationPercentage'};
|
|
571
571
|
olympe.sa.$e(function(a){E(a,olympe.xa.pa.RB,olympe.xa.Tg.C.SRP);E(a,olympe.xa.pa.nF,!1);E(a,olympe.xa.pa.pF,'');E(a,olympe.xa.pa.oF,'');E(a,olympe.xa.pa.ow,'');E(a,olympe.xa.pa.qL,50);E(a,olympe.xa.pa.PF,3E5);C(a,olympe.xa.ba.Vb,[olympe.gb.ba.Ob],b=>b.Vg('auth'));B(a,olympe.xa.ba.vB,olympe.xa.vF,olympe.Bc.ba.Ar);B(a,olympe.xa.ba.kw,olympe.xa.QP,olympe.Bc.ba.dz,olympe.xa.ba.Vb,olympe.xa.ba.vB);B(a,olympe.xa.ba.KK,olympe.xa.Uh,olympe.xa.ba.Vb,olympe.Y.ba.Jt,olympe.Y.ba.jC,olympe.Y.ba.bm,olympe.xa.ba.Az,
|
|
572
572
|
olympe.xa.ba.kw);Wa(a,olympe.xa.ba.Az);C(a,olympe.xa.ba.Ob,[olympe.xa.ba.Vb,olympe.Y.ba.bm,olympe.xa.ba.KK,olympe.host.ba.fo,olympe.host.ba.Lt,new olympe.sa.de(olympe.xa.ba.kw,olympe.sa.Xs.C.LC),new olympe.sa.de(olympe.xa.ba.Az,olympe.sa.Xs.C.LC),new olympe.sa.zb(olympe.xa.pa.RB),new olympe.sa.zb(olympe.xa.pa.nF),new olympe.sa.zb(olympe.xa.pa.pF),new olympe.sa.zb(olympe.xa.pa.oF),new olympe.sa.zb(olympe.xa.pa.ow),new olympe.sa.zb(olympe.xa.pa.PF)],(b,c,d,e,f,g,k,l,m,n,p,r,t)=>{const u=[new olympe.xa.hj.PS(b,
|
|
@@ -609,18 +609,18 @@ olympe.N.ua.uc.prototype.setLineJoin=olympe.N.ua.uc.prototype.Wj;olympe.N.ua.uc.
|
|
|
609
609
|
olympe.N.ua.uc.prototype.quadraticCurveTo=olympe.N.ua.uc.prototype.quadraticCurveTo;olympe.N.ua.uc.prototype.moveTo=olympe.N.ua.uc.prototype.moveTo;olympe.N.ua.uc.prototype.lineToRelative=olympe.N.ua.uc.prototype.cj;olympe.N.ua.uc.prototype.lineTo=olympe.N.ua.uc.prototype.lineTo;olympe.N.ua.uc.prototype.fillText=olympe.N.ua.uc.prototype.fillText;olympe.N.ua.uc.prototype.fillRect=olympe.N.ua.uc.prototype.fillRect;olympe.N.ua.uc.prototype.fill=olympe.N.ua.uc.prototype.fill;
|
|
610
610
|
olympe.N.ua.uc.prototype.closePath=olympe.N.ua.uc.prototype.closePath;olympe.N.ua.uc.prototype.clip=olympe.N.ua.uc.prototype.clip;olympe.N.ua.uc.prototype.clearRect=olympe.N.ua.uc.prototype.clearRect;olympe.N.ua.uc.prototype.bezierCurveTo=olympe.N.ua.uc.prototype.bezierCurveTo;olympe.N.ua.uc.prototype.beginPath=olympe.N.ua.uc.prototype.beginPath;olympe.N.ua.uc.prototype.arcTo=olympe.N.ua.uc.prototype.arcTo;olympe.N.ua.uc.prototype.arc=olympe.N.ua.uc.prototype.arc;
|
|
611
611
|
olympe.N.ua.uc.C={LF:'butt',Et:'round',dD:'square'};olympe.N.ua.uc.D={AF:'bevel',Et:'round',FJ:'miter'};olympe.N.ua.Image=class extends olympe.N.F.mb{Kh(){}Lw(){}Kw(){}};olympe.N.ua.Image.prototype.drawUrl=olympe.N.ua.Image.prototype.Kw;olympe.N.ua.Image.prototype.drawVectorial=olympe.N.ua.Image.prototype.Lw;olympe.N.ua.Image.prototype.saveAsPicture=olympe.N.ua.Image.prototype.Kh;olympe.N.ua.aC=class extends olympe.N.F.mb{eB(){}};olympe.N.ua.aC.prototype.setImage=olympe.N.ua.aC.prototype.eB;olympe.N.ua.filters={};olympe.N.ua.filters.Wv=class extends olympe.N.ua.aC{hB(){}};olympe.N.ua.filters.Wv.prototype.setSquareSize=olympe.N.ua.filters.Wv.prototype.hB;olympe.N.media={};olympe.N.media.bc={};olympe.N.media.bc.Np=class extends olympe.N.wf{bb(){}};olympe.N.media.bc.Np.prototype.getName=olympe.N.media.bc.Np.prototype.bb;olympe.N.media.bc.op=class extends olympe.N.media.bc.Np{lp(){}};olympe.N.media.bc.op.prototype.setIdAndName=olympe.N.media.bc.op.prototype.lp;olympe.N.media.bc.Am=class extends olympe.N.media.bc.Np{lp(){}};olympe.N.media.bc.Am.prototype.setIdAndName=olympe.N.media.bc.Am.prototype.lp;olympe.N.media.Op=class extends olympe.N.wf{Rw(){}Qw(){}};olympe.N.media.Op.prototype.getAllAudioInputDevices=olympe.N.media.Op.prototype.Qw;olympe.N.media.Op.prototype.getAllVideoInputDevices=olympe.N.media.Op.prototype.Rw;olympe.N.media.vU=class extends olympe.N.wf{};olympe.N.media.MediaStream=class extends olympe.N.media.vU{Ms(){}};olympe.N.media.MediaStream.prototype.takePicture=olympe.N.media.MediaStream.prototype.Ms;olympe.N.media.Ir=class extends olympe.N.media.MediaStream{ma(){}};olympe.N.media.oi=class extends olympe.N.media.Ir{Ou(){}YA(){}hv(){}RE(){}Ms(){}Ho(){}};olympe.N.media.oi.prototype.initStream=olympe.N.media.oi.prototype.Ho;olympe.N.media.oi.prototype.takePicture=olympe.N.media.oi.prototype.Ms;olympe.N.media.oi.prototype.setVideoInputDevice=olympe.N.media.oi.prototype.RE;olympe.N.media.oi.prototype.setVideoEnabled=olympe.N.media.oi.prototype.hv;olympe.N.media.oi.prototype.setAudioInputDevice=olympe.N.media.oi.prototype.YA;
|
|
612
|
-
olympe.N.media.oi.prototype.setAudioEnabled=olympe.N.media.oi.prototype.Ou;olympe.N.media.DK=class extends olympe.N.media.Ir{};olympe.N.media.Rt=class extends olympe.N.media.MediaStream{Hk(){}le(){}};olympe.N.media.Rt.prototype.getUrl=olympe.N.media.Rt.prototype.le;olympe.N.media.Rt.prototype.setUrl=olympe.N.media.Rt.prototype.Hk;olympe.N.Ta={};olympe.N.Ta.Va={};olympe.N.Ta.Va.Map=class extends olympe.N.F.mb{
|
|
612
|
+
olympe.N.media.oi.prototype.setAudioEnabled=olympe.N.media.oi.prototype.Ou;olympe.N.media.DK=class extends olympe.N.media.Ir{};olympe.N.media.Rt=class extends olympe.N.media.MediaStream{Hk(){}le(){}};olympe.N.media.Rt.prototype.getUrl=olympe.N.media.Rt.prototype.le;olympe.N.media.Rt.prototype.setUrl=olympe.N.media.Rt.prototype.Hk;olympe.N.Ta={};olympe.N.Ta.Va={};olympe.N.Ta.Va.Map=class extends olympe.N.F.mb{ue(){}Hs(){}au(){}Aw(){}ps(){}xw(){}Iu(){}pv(){}Is(){}ux(){}ys(){}xs(){}tx(){}sx(){}rv(){}tv(){}kv(){}hu(){}iu(){}Gu(){}Eu(){}ju(){}ku(){}Zu(){}bv(){}$u(){}Fu(){}mq(){}stop(){}};olympe.N.Ta.Va.Map.prototype.stop=olympe.N.Ta.Va.Map.prototype.stop;olympe.N.Ta.Va.Map.prototype.invalidateSize=olympe.N.Ta.Va.Map.prototype.mq;olympe.N.Ta.Va.Map.prototype.panInsideBounds=olympe.N.Ta.Va.Map.prototype.Fu;olympe.N.Ta.Va.Map.prototype.setMaxZoom=olympe.N.Ta.Va.Map.prototype.$u;
|
|
613
613
|
olympe.N.Ta.Va.Map.prototype.setMinZoom=olympe.N.Ta.Va.Map.prototype.bv;olympe.N.Ta.Va.Map.prototype.setMaxBounds=olympe.N.Ta.Va.Map.prototype.Zu;olympe.N.Ta.Va.Map.prototype.flyToBounds=olympe.N.Ta.Va.Map.prototype.ku;olympe.N.Ta.Va.Map.prototype.flyTo=olympe.N.Ta.Va.Map.prototype.ju;olympe.N.Ta.Va.Map.prototype.panBy=olympe.N.Ta.Va.Map.prototype.Eu;olympe.N.Ta.Va.Map.prototype.panTo=olympe.N.Ta.Va.Map.prototype.Gu;olympe.N.Ta.Va.Map.prototype.fitWorld=olympe.N.Ta.Va.Map.prototype.iu;
|
|
614
614
|
olympe.N.Ta.Va.Map.prototype.fitBounds=olympe.N.Ta.Va.Map.prototype.hu;olympe.N.Ta.Va.Map.prototype.setZoomAround=olympe.N.Ta.Va.Map.prototype.kv;olympe.N.Ta.Va.Map.prototype.zoomOut=olympe.N.Ta.Va.Map.prototype.tv;olympe.N.Ta.Va.Map.prototype.zoomIn=olympe.N.Ta.Va.Map.prototype.rv;olympe.N.Ta.Va.Map.prototype.registerLatitudeCallback=olympe.N.Ta.Va.Map.prototype.sx;olympe.N.Ta.Va.Map.prototype.registerLongitudeCallback=olympe.N.Ta.Va.Map.prototype.tx;olympe.N.Ta.Va.Map.prototype.setLatitude=olympe.N.Ta.Va.Map.prototype.xs;
|
|
615
615
|
olympe.N.Ta.Va.Map.prototype.setLongitude=olympe.N.Ta.Va.Map.prototype.ys;olympe.N.Ta.Va.Map.prototype.registerZoomCallback=olympe.N.Ta.Va.Map.prototype.ux;olympe.N.Ta.Va.Map.prototype.setZoom=olympe.N.Ta.Va.Map.prototype.Is;olympe.N.Ta.Va.Map.prototype.updateTileLayer=olympe.N.Ta.Va.Map.prototype.pv;olympe.N.Ta.Va.Map.prototype.removeGeoJson=olympe.N.Ta.Va.Map.prototype.Iu;olympe.N.Ta.Va.Map.prototype.addGeoJson=olympe.N.Ta.Va.Map.prototype.xw;olympe.N.Ta.Va.Map.prototype.removeMarker=olympe.N.Ta.Va.Map.prototype.ps;
|
|
616
|
-
olympe.N.Ta.Va.Map.prototype.addMarkers=olympe.N.Ta.Va.Map.prototype.Aw;olympe.N.Ta.Va.Map.prototype.addMarker=olympe.N.Ta.Va.Map.prototype.au;olympe.N.Ta.Va.Map.prototype.setView=olympe.N.Ta.Va.Map.prototype.Hs;olympe.N.Ta.Va.Map.C={zJ:'MAPBOX',kT:'OPENTOPOMAP',G0:'OPENSTREETMAP',NONE:'NONE'};olympe.N.P={};olympe.N.P.xi=class extends olympe.N.F.mb{constructor(){super()}uk(){}ay(){}appendChild(){}removeChild(){}$w(){}TD(){}};olympe.N.P.xi.prototype.getImageUrl=olympe.N.P.xi.prototype.TD;olympe.N.P.xi.prototype.getImageContent=olympe.N.P.xi.prototype.$w;olympe.N.P.xi.prototype.removeChild=olympe.N.P.xi.prototype.removeChild;olympe.N.P.xi.prototype.appendChild=olympe.N.P.xi.prototype.appendChild;olympe.N.P.xi.prototype.setViewbox=olympe.N.P.xi.prototype.ay;olympe.N.P.xi.prototype.getSvgDefsElement=olympe.N.P.xi.prototype.uk;olympe.N.P.
|
|
617
|
-
olympe.N.P.
|
|
616
|
+
olympe.N.Ta.Va.Map.prototype.addMarkers=olympe.N.Ta.Va.Map.prototype.Aw;olympe.N.Ta.Va.Map.prototype.addMarker=olympe.N.Ta.Va.Map.prototype.au;olympe.N.Ta.Va.Map.prototype.setView=olympe.N.Ta.Va.Map.prototype.Hs;olympe.N.Ta.Va.Map.C={zJ:'MAPBOX',kT:'OPENTOPOMAP',G0:'OPENSTREETMAP',NONE:'NONE'};olympe.N.P={};olympe.N.P.xi=class extends olympe.N.F.mb{constructor(){super()}uk(){}ay(){}appendChild(){}removeChild(){}$w(){}TD(){}};olympe.N.P.xi.prototype.getImageUrl=olympe.N.P.xi.prototype.TD;olympe.N.P.xi.prototype.getImageContent=olympe.N.P.xi.prototype.$w;olympe.N.P.xi.prototype.removeChild=olympe.N.P.xi.prototype.removeChild;olympe.N.P.xi.prototype.appendChild=olympe.N.P.xi.prototype.appendChild;olympe.N.P.xi.prototype.setViewbox=olympe.N.P.xi.prototype.ay;olympe.N.P.xi.prototype.getSvgDefsElement=olympe.N.P.xi.prototype.uk;olympe.N.P.ze=class extends olympe.N.wf{va(){}setAttribute(){}Xu(){}ja(){}Ef(){}getParent(){}Pf(){}zo(){}rd(){}yh(){}Bs(){}};olympe.N.P.ze.prototype.setPointerEvents=olympe.N.P.ze.prototype.Bs;olympe.N.P.ze.prototype.setIgnoreUserInteraction=olympe.N.P.ze.prototype.yh;olympe.N.P.ze.prototype.setHidden=olympe.N.P.ze.prototype.rd;olympe.N.P.ze.prototype.getContainer=olympe.N.P.ze.prototype.zo;olympe.N.P.ze.prototype.setContainer=olympe.N.P.ze.prototype.Pf;olympe.N.P.ze.prototype.getParent=olympe.N.P.ze.prototype.getParent;
|
|
617
|
+
olympe.N.P.ze.prototype.setParent=olympe.N.P.ze.prototype.Ef;olympe.N.P.ze.prototype.getId=olympe.N.P.ze.prototype.ja;olympe.N.P.ze.prototype.setId=olympe.N.P.ze.prototype.Xu;olympe.N.P.ze.prototype.setAttribute=olympe.N.P.ze.prototype.setAttribute;olympe.N.P.ze.prototype.getHtmlElement=olympe.N.P.ze.prototype.va;olympe.N.P.yd=class extends olympe.N.P.ze{constructor(){super()}oe(){}qa(){}Fe(){}ta(){}setPosition(){}Ag(){}Ce(){}Cg(){}Cd(){}setScale(){}jq(){}Gb(){}Dx(){}ge(){}};olympe.N.P.yd.prototype.refreshBox=olympe.N.P.yd.prototype.ge;olympe.N.P.yd.prototype.setDefaultBox=olympe.N.P.yd.prototype.Dx;olympe.N.P.yd.prototype.setDimension=olympe.N.P.yd.prototype.Gb;olympe.N.P.yd.prototype.getScale=olympe.N.P.yd.prototype.jq;olympe.N.P.yd.prototype.setScale=olympe.N.P.yd.prototype.setScale;
|
|
618
618
|
olympe.N.P.yd.prototype.getWidth=olympe.N.P.yd.prototype.Cd;olympe.N.P.yd.prototype.setWidth=olympe.N.P.yd.prototype.Cg;olympe.N.P.yd.prototype.getHeight=olympe.N.P.yd.prototype.Ce;olympe.N.P.yd.prototype.setHeight=olympe.N.P.yd.prototype.Ag;olympe.N.P.yd.prototype.setPosition=olympe.N.P.yd.prototype.setPosition;olympe.N.P.yd.prototype.getY=olympe.N.P.yd.prototype.ta;olympe.N.P.yd.prototype.setY=olympe.N.P.yd.prototype.Fe;olympe.N.P.yd.prototype.getX=olympe.N.P.yd.prototype.qa;
|
|
619
619
|
olympe.N.P.yd.prototype.setX=olympe.N.P.yd.prototype.oe;olympe.N.P.mc=class extends olympe.N.P.yd{constructor(){super()}rotate(){}Hx(){}setFillColor(){}EE(){}cB(){}gv(){}Wm(){}setStrokeColor(){}PE(){}jB(){}Yx(){}Xx(){}Zx(){}Vu(){}ly(){}vs(){}ky(){}Ox(){}my(){}vw(){}};olympe.N.P.mc.prototype.addAnimation=olympe.N.P.mc.prototype.vw;olympe.N.P.mc.prototype.unsetMask=olympe.N.P.mc.prototype.my;olympe.N.P.mc.prototype.setMask=olympe.N.P.mc.prototype.Ox;olympe.N.P.mc.prototype.unsetFilter=olympe.N.P.mc.prototype.ky;olympe.N.P.mc.prototype.setFilter=olympe.N.P.mc.prototype.vs;
|
|
620
620
|
olympe.N.P.mc.prototype.unsetGradient=olympe.N.P.mc.prototype.ly;olympe.N.P.mc.prototype.setGradient=olympe.N.P.mc.prototype.Vu;olympe.N.P.mc.prototype.setStrokeLinecap=olympe.N.P.mc.prototype.Zx;olympe.N.P.mc.prototype.setStrokeDashOffset=olympe.N.P.mc.prototype.Xx;olympe.N.P.mc.prototype.setStrokeDashPattern=olympe.N.P.mc.prototype.Yx;olympe.N.P.mc.prototype.setStrokeColorAndOpacity=olympe.N.P.mc.prototype.jB;olympe.N.P.mc.prototype.setStrokeOpacity=olympe.N.P.mc.prototype.PE;
|
|
621
621
|
olympe.N.P.mc.prototype.setStrokeColor=olympe.N.P.mc.prototype.setStrokeColor;olympe.N.P.mc.prototype.getStrokeWidth=olympe.N.P.mc.prototype.Wm;olympe.N.P.mc.prototype.setStrokeWidth=olympe.N.P.mc.prototype.gv;olympe.N.P.mc.prototype.setFillColorAndOpacity=olympe.N.P.mc.prototype.cB;olympe.N.P.mc.prototype.setFillOpacity=olympe.N.P.mc.prototype.EE;olympe.N.P.mc.prototype.setFillColor=olympe.N.P.mc.prototype.setFillColor;olympe.N.P.mc.prototype.setFilled=olympe.N.P.mc.prototype.Hx;
|
|
622
|
-
olympe.N.P.mc.prototype.rotate=olympe.N.P.mc.prototype.rotate;olympe.Wh(olympe.N.P.mc,olympe.N.P.yd,olympe.N.X.nc,olympe.N.X.pH,olympe.N.X.Md,olympe.N.X.oH);olympe.N.P.em=class extends olympe.N.P.mc{constructor(){super()}setRadius(){}};olympe.N.P.em.prototype.setRadius=olympe.N.P.em.prototype.setRadius;olympe.N.P.Tn=class extends olympe.N.P.mc{constructor(){super()}JE(){}KE(){}setRadius(){}};olympe.N.P.Tn.prototype.setRadius=olympe.N.P.Tn.prototype.setRadius;olympe.N.P.Tn.prototype.setRy=olympe.N.P.Tn.prototype.KE;olympe.N.P.Tn.prototype.setRx=olympe.N.P.Tn.prototype.JE;olympe.N.P.Image=class extends olympe.N.P.mc{constructor(){super()}ne(){}Il(){}Jl(){}Nl(){}};olympe.N.P.Image.prototype.setVerticalAlignment=olympe.N.P.Image.prototype.Nl;olympe.N.P.Image.prototype.setHorizontalAlignment=olympe.N.P.Image.prototype.Jl;olympe.N.P.Image.prototype.setAspectRatioMode=olympe.N.P.Image.prototype.Il;olympe.N.P.Image.prototype.setSource=olympe.N.P.Image.prototype.ne;olympe.N.P.
|
|
623
|
-
olympe.N.P.Text.prototype.setFontSize=olympe.N.P.Text.prototype.rb;olympe.N.P.Text.prototype.setText=olympe.N.P.Text.prototype.Jb;olympe.N.P.qw=class extends olympe.N.P.Text{constructor(){super()}As(){}};olympe.N.P.qw.prototype.setPath=olympe.N.P.qw.prototype.As;olympe.N.P.Yk=class extends olympe.N.P.mc{constructor(){super()}zx(){}mh(){}Vp(){}Ku(){}};olympe.N.P.Yk.prototype.removeSegment=olympe.N.P.Yk.prototype.Ku;olympe.N.P.Yk.prototype.addSegment=olympe.N.P.Yk.prototype.Vp;olympe.N.P.Yk.prototype.setLineCap=olympe.N.P.Yk.prototype.mh;olympe.N.P.Yk.prototype.setClosed=olympe.N.P.Yk.prototype.zx;olympe.N.P.If=class extends olympe.N.P.
|
|
622
|
+
olympe.N.P.mc.prototype.rotate=olympe.N.P.mc.prototype.rotate;olympe.Wh(olympe.N.P.mc,olympe.N.P.yd,olympe.N.X.nc,olympe.N.X.pH,olympe.N.X.Md,olympe.N.X.oH);olympe.N.P.em=class extends olympe.N.P.mc{constructor(){super()}setRadius(){}};olympe.N.P.em.prototype.setRadius=olympe.N.P.em.prototype.setRadius;olympe.N.P.Tn=class extends olympe.N.P.mc{constructor(){super()}JE(){}KE(){}setRadius(){}};olympe.N.P.Tn.prototype.setRadius=olympe.N.P.Tn.prototype.setRadius;olympe.N.P.Tn.prototype.setRy=olympe.N.P.Tn.prototype.KE;olympe.N.P.Tn.prototype.setRx=olympe.N.P.Tn.prototype.JE;olympe.N.P.Image=class extends olympe.N.P.mc{constructor(){super()}ne(){}Il(){}Jl(){}Nl(){}};olympe.N.P.Image.prototype.setVerticalAlignment=olympe.N.P.Image.prototype.Nl;olympe.N.P.Image.prototype.setHorizontalAlignment=olympe.N.P.Image.prototype.Jl;olympe.N.P.Image.prototype.setAspectRatioMode=olympe.N.P.Image.prototype.Il;olympe.N.P.Image.prototype.setSource=olympe.N.P.Image.prototype.ne;olympe.N.P.ye=class extends olympe.N.P.mc{constructor(){super()}Wb(){}};olympe.N.P.ye.prototype.setCornerRadius=olympe.N.P.ye.prototype.Wb;olympe.N.P.Text=class extends olympe.N.P.mc{constructor(){super()}Jb(){}rb(){}vb(){}Bb(){}Kx(){}fp(){}Rq(){}};olympe.N.P.Text.prototype.unregisterTextSize=olympe.N.P.Text.prototype.Rq;olympe.N.P.Text.prototype.registerTextSize=olympe.N.P.Text.prototype.fp;olympe.N.P.Text.prototype.setHorizontalAlign=olympe.N.P.Text.prototype.Kx;olympe.N.P.Text.prototype.setFontWeight=olympe.N.P.Text.prototype.Bb;olympe.N.P.Text.prototype.setFontFamily=olympe.N.P.Text.prototype.vb;
|
|
623
|
+
olympe.N.P.Text.prototype.setFontSize=olympe.N.P.Text.prototype.rb;olympe.N.P.Text.prototype.setText=olympe.N.P.Text.prototype.Jb;olympe.N.P.qw=class extends olympe.N.P.Text{constructor(){super()}As(){}};olympe.N.P.qw.prototype.setPath=olympe.N.P.qw.prototype.As;olympe.N.P.Yk=class extends olympe.N.P.mc{constructor(){super()}zx(){}mh(){}Vp(){}Ku(){}};olympe.N.P.Yk.prototype.removeSegment=olympe.N.P.Yk.prototype.Ku;olympe.N.P.Yk.prototype.addSegment=olympe.N.P.Yk.prototype.Vp;olympe.N.P.Yk.prototype.setLineCap=olympe.N.P.Yk.prototype.mh;olympe.N.P.Yk.prototype.setClosed=olympe.N.P.Yk.prototype.zx;olympe.N.P.If=class extends olympe.N.P.ze{constructor(){super()}$i(){}oe(){}Fe(){}setPosition(){}Yj(){}Jg(){}};olympe.N.P.If.prototype.getNext=olympe.N.P.If.prototype.Jg;olympe.N.P.If.prototype.setNext=olympe.N.P.If.prototype.Yj;olympe.N.P.If.prototype.setPosition=olympe.N.P.If.prototype.setPosition;olympe.N.P.If.prototype.setY=olympe.N.P.If.prototype.Fe;olympe.N.P.If.prototype.setX=olympe.N.P.If.prototype.oe;olympe.N.P.If.prototype.getCommandString=olympe.N.P.If.prototype.$i;olympe.N.P.si=class extends olympe.N.P.If{constructor(){super()}VE(){}aF(){}Bx(){}WE(){}bF(){}Cx(){}};olympe.N.P.si.prototype.setControl2=olympe.N.P.si.prototype.Cx;olympe.N.P.si.prototype.setYControl2=olympe.N.P.si.prototype.bF;olympe.N.P.si.prototype.setXControl2=olympe.N.P.si.prototype.WE;olympe.N.P.si.prototype.setControl1=olympe.N.P.si.prototype.Bx;olympe.N.P.si.prototype.setYControl1=olympe.N.P.si.prototype.aF;olympe.N.P.si.prototype.setXControl1=olympe.N.P.si.prototype.VE;olympe.N.P.xz=class extends olympe.N.P.If{constructor(){super()}rd(){}};olympe.N.P.io=class extends olympe.N.P.If{constructor(){super()}UE(){}$E(){}Ax(){}};olympe.N.P.io.prototype.setControl=olympe.N.P.io.prototype.Ax;olympe.N.P.io.prototype.setYControl=olympe.N.P.io.prototype.$E;olympe.N.P.io.prototype.setXControl=olympe.N.P.io.prototype.UE;olympe.N.P.Vi=class extends olympe.N.P.If{constructor(){super()}Tx(){}Ux(){}by(){}Mx(){}$x(){}};olympe.N.P.Vi.prototype.setSweepFlag=olympe.N.P.Vi.prototype.$x;olympe.N.P.Vi.prototype.setLargeArcSweepFlag=olympe.N.P.Vi.prototype.Mx;olympe.N.P.Vi.prototype.setXAxisRotation=olympe.N.P.Vi.prototype.by;olympe.N.P.Vi.prototype.setRY=olympe.N.P.Vi.prototype.Ux;olympe.N.P.Vi.prototype.setRX=olympe.N.P.Vi.prototype.Tx;olympe.N.P.yz=class extends olympe.N.P.If{constructor(){super()}};olympe.N.P.dr=class extends olympe.N.P.mc{constructor(){super()}appendChild(){}removeChild(){}};olympe.N.P.dr.prototype.removeChild=olympe.N.P.dr.prototype.removeChild;olympe.N.P.dr.prototype.appendChild=olympe.N.P.dr.prototype.appendChild;olympe.N.P.Qf=class extends olympe.N.P.yd{constructor(){super()}Li(){}addElement(){}Hu(){}vx(){}};olympe.N.P.Qf.prototype.removeAllElements=olympe.N.P.Qf.prototype.vx;olympe.N.P.Qf.prototype.removeElement=olympe.N.P.Qf.prototype.Hu;olympe.N.P.Qf.prototype.addElement=olympe.N.P.Qf.prototype.addElement;olympe.N.P.Qf.prototype.setAbsolute=olympe.N.P.Qf.prototype.Li;olympe.N.P.Eg=class extends olympe.N.P.yd{constructor(){super()}Yj(){}Jg(){}};olympe.N.P.Eg.prototype.getNext=olympe.N.P.Eg.prototype.Jg;olympe.N.P.Eg.prototype.setNext=olympe.N.P.Eg.prototype.Yj;olympe.N.P.Nn=class extends olympe.N.P.Eg{constructor(){super()}wx(){}lf(){}};olympe.N.P.Nn.prototype.setInput=olympe.N.P.Nn.prototype.lf;olympe.N.P.Nn.prototype.setAmount=olympe.N.P.Nn.prototype.wx;olympe.N.P.Wq=class extends olympe.N.P.Eg{constructor(){super()}lf(){}setMatrix(){}};olympe.N.P.Wq.prototype.setMatrix=olympe.N.P.Wq.prototype.setMatrix;olympe.N.P.Wq.prototype.setInput=olympe.N.P.Wq.prototype.lf;olympe.N.P.Rn=class extends olympe.N.P.Eg{constructor(){super()}lf(){}Lx(){}Px(){}};olympe.N.P.Rn.prototype.setMode=olympe.N.P.Rn.prototype.Px;olympe.N.P.Rn.prototype.setInput2=olympe.N.P.Rn.prototype.Lx;olympe.N.P.Rn.prototype.setInput=olympe.N.P.Rn.prototype.lf;olympe.N.P.Un=class extends olympe.N.P.Eg{constructor(){super()}FE(){}HE(){}GE(){}};olympe.N.P.Un.prototype.setFloodColorAndOpacity=olympe.N.P.Un.prototype.GE;olympe.N.P.Un.prototype.setFloodOpacity=olympe.N.P.Un.prototype.HE;olympe.N.P.Un.prototype.setFloodColor=olympe.N.P.Un.prototype.FE;olympe.N.P.Pk=class extends olympe.N.P.Eg{constructor(){super()}ne(){}Il(){}Jl(){}Nl(){}};olympe.N.P.Pk.prototype.setVerticalAlignment=olympe.N.P.Pk.prototype.Nl;olympe.N.P.Pk.prototype.setHorizontalAlignment=olympe.N.P.Pk.prototype.Jl;olympe.N.P.Pk.prototype.setAspectRatioMode=olympe.N.P.Pk.prototype.Il;olympe.N.P.Pk.prototype.setSource=olympe.N.P.Pk.prototype.ne;olympe.N.P.co=class extends olympe.N.P.Eg{constructor(){super()}yw(){}Ju(){}lf(){}};olympe.N.P.co.prototype.setInput=olympe.N.P.co.prototype.lf;olympe.N.P.co.prototype.removeInput=olympe.N.P.co.prototype.Ju;olympe.N.P.co.prototype.addInput=olympe.N.P.co.prototype.yw;olympe.N.P.Vk=class extends olympe.N.P.Eg{constructor(){super()}CE(){}DE(){}Fx(){}lf(){}};olympe.N.P.Vk.prototype.setInput=olympe.N.P.Vk.prototype.lf;olympe.N.P.Vk.prototype.setDelta=olympe.N.P.Vk.prototype.Fx;olympe.N.P.Vk.prototype.setDeltaY=olympe.N.P.Vk.prototype.DE;olympe.N.P.Vk.prototype.setDeltaX=olympe.N.P.Vk.prototype.CE;olympe.N.P.Eh=class extends olympe.N.P.ze{constructor(){super()}Li(){}Bw(){}Lu(){}};olympe.N.P.Eh.prototype.removeStop=olympe.N.P.Eh.prototype.Lu;olympe.N.P.Eh.prototype.addStop=olympe.N.P.Eh.prototype.Bw;olympe.N.P.Eh.prototype.setAbsolute=olympe.N.P.Eh.prototype.Li;olympe.N.P.Nk=class extends olympe.N.P.ze{constructor(){super()}Qx(){}NE(){}OE(){}iB(){}};olympe.N.P.Nk.prototype.setStopColorAndOpacity=olympe.N.P.Nk.prototype.iB;olympe.N.P.Nk.prototype.setStopOpacity=olympe.N.P.Nk.prototype.OE;olympe.N.P.Nk.prototype.setStopColor=olympe.N.P.Nk.prototype.NE;olympe.N.P.Nk.prototype.setOffset=olympe.N.P.Nk.prototype.Qx;olympe.N.P.ni=class extends olympe.N.P.Eh{constructor(){super()}SE(){}YE(){}Rx(){}TE(){}ZE(){}Sx(){}};olympe.N.P.ni.prototype.setPoint2=olympe.N.P.ni.prototype.Sx;olympe.N.P.ni.prototype.setY2=olympe.N.P.ni.prototype.ZE;olympe.N.P.ni.prototype.setX2=olympe.N.P.ni.prototype.TE;olympe.N.P.ni.prototype.setPoint=olympe.N.P.ni.prototype.Rx;olympe.N.P.ni.prototype.setY1=olympe.N.P.ni.prototype.YE;olympe.N.P.ni.prototype.setX1=olympe.N.P.ni.prototype.SE;olympe.N.P.ko=class extends olympe.N.P.Eh{constructor(){super()}setRadius(){}xx(){}Jx(){}};olympe.N.P.ko.prototype.setFocalPoint=olympe.N.P.ko.prototype.Jx;olympe.N.P.ko.prototype.setCenter=olympe.N.P.ko.prototype.xx;olympe.N.P.ko.prototype.setRadius=olympe.N.P.ko.prototype.setRadius;olympe.N.P.ao=class extends olympe.N.P.yd{constructor(){super()}appendChild(){}removeChild(){}Li(){}};olympe.N.P.ao.prototype.setAbsolute=olympe.N.P.ao.prototype.Li;olympe.N.P.ao.prototype.removeChild=olympe.N.P.ao.prototype.removeChild;olympe.N.P.ao.prototype.appendChild=olympe.N.P.ao.prototype.appendChild;olympe.ui={};olympe.ui.Cc=class{constructor(){}C(){}hf(){}ci(){return this}D(){}da(){}O(){}R(){}Cb(){}Tm(){}W(){}$(){}};olympe.ui.wf=class extends olympe.host.Ui{constructor(a){super(a)}ra(){return this.vg()}};olympe.ui.wf.prototype.ra.K=new olympe.j.J(()=>olympe.N.wf,[]);olympe.ui.it=class{constructor(a,b,c,d,e){this.C=a;this.style=b||'normal';this.O=c||300;this.D=d||Object.create(null);this.id=e||olympe.oa.bf()}SD(){return this.C}BA(){return this.style}aE(){return this.O}DA(){return this.D}ja(){return this.id}};olympe.ui.it.prototype.SD.K=new olympe.j.J(()=>String,[]);olympe.ui.it.prototype.BA.K=new olympe.j.J(()=>String,[]);olympe.ui.it.prototype.aE.K=new olympe.j.J(()=>Number,[]);olympe.ui.it.prototype.DA.K=new olympe.j.J(()=>Object,[]);olympe.ui.ha={};olympe.ui.ha.uy={S_:'fill',Us:'contain',Vs:'cover'};olympe.ui.ha.df={Uf:'manual',xm:'topleft',gh:'top',ym:'topright',TF:'centerleft',Sb:'center',UF:'centerright',$l:'bottomleft',zh:'bottom',Ts:'bottomright'};olympe.ui.ha.Ah={Qs:'auto',Uf:'manual',Us:'contain',Vs:'cover'};olympe.ui.ha.pp={jz:'normal',WS:'multiply',VT:'screen',tQ:'darken',DS:'lighten',nU:'srcin',oU:'srcout',mU:'srcatop',aV:'xor'};olympe.ui.ha.gt={lU:'source_graphic',kU:'source_alpha',SP:'background_image',RP:'background_alpha',MQ:'fill_paint',qU:'stroke_paint'};olympe.ui.ha.Uy={jz:'normal',tR:'italic',D0:'oblique'};olympe.ui.ha.zp={Uf:'manual',MP:'auto_width',LP:'auto_height',qF:'auto_width_height',hU:'smart_width',gU:'smart_height',iU:'smart_width_height'};olympe.ui.ha.Db={Tf:'left',Sb:'center',wi:'right'};olympe.ui.ha.Lp={qG:'defaultaudio',rG:'defaultvideo',JG:'facingvideo',CG:'environmentvideo'};olympe.ui.ha.Tv={LF:'butt',Et:'round',dD:'square'};olympe.ui.ha.FC={AF:'bevel',Et:'round',FJ:'miter'};olympe.ui.ha.$J={vT:'portrait',CS:'landscape'};olympe.ui.ha.Mz={NONE:'none',eQ:'characters',XU:'words',WT:'sentences'};olympe.ui.ha.Er={Lz:'text',bK:'password',zG:'email',tT:'phone',dT:'number'};olympe.ui.ha.oo={Av:'clip',yG:'ellipsis',KG:'fade'};olympe.ui.ha.rc={gh:'top',Sc:'middle',zh:'bottom'};olympe.ui.X={};olympe.ui.X.Event=class{constructor(a){this.ca=a}RD(){return this.ca}};olympe.ui.X.Event.prototype.RD.K=new olympe.j.J(()=>olympe.j.ac,[]);olympe.ui.X.JQ=class{constructor(a,b,c,d){this.Bm=a;this.sC=b;this.priority=void 0!==d?d:0;this.id=void 0!==c?c:olympe.oa.pk();this.next=null}ja(){return this.id}Jg(){return this.next}Yj(a){null!==this.next&&a.Yj(this.next);this.next=a}};olympe.ui.X.Ae=class{constructor(){this.first=null}Vd(){return this.first}contains(a){let b=this.first;for(;b;){if(b===a)return!0;b=b.Jg()}return!1}clear(){this.first=null}toString(){let a='',b=this.first;for(;b;)a+=(a?', ':'')+b.ja(),b=b.Jg();return'EventCallbackList('+a+')'}};function yf(a,b,c){const d=olympe.j.ac.now();Q(a,()=>{olympe.j.Wa([b.RD()],e=>{const f=olympe.j.Qa(b);if(e.zO(d).valueOf()){e=[];let g=c.Vd();for(;null!==g;)e.push(g),g=g.Jg();for(const k of e)if(c.contains(k)&&!0===k.sC.run(k.Bm.bind(null,f)))break}})})}function zf(a,b,c,d,e,f){b=new olympe.ui.X.JQ(b,olympe.j.yb(),c,d);let g=c=e.Vd();for(;c&&c.priority<d;)g=c,c=c.Jg();g?g.Yj(b):e.first=b;olympe.j.yb().Ve(f.bind(a,b.ja()));return b.ja()}
|
|
624
624
|
function Af(a,b){olympe.j.Zb(a)&&(a=F(a));let c=null!==b?b.Vd():null;if(null!==c)if(c.ja()===a)null!==b.first&&(a=b.first.Jg(),b.first.next=null,b.first=a);else for(;null!==c.next;){b=c.Jg();if(b.ja()===a){a=c;null!==a.next&&(b=a.next.Jg(),a.next.next=null,a.next=b);break}c=b}}olympe.ui.X.ZB=class extends olympe.ui.wf{constructor(a){super(a)}};olympe.ui.X.qe=class extends olympe.ui.X.Event{constructor(a,b,c,d,e,f,g,k){super(g);this.key=a;this.char=b;this.ctrlKey=c;this.shiftKey=d;this.altKey=e;this.metaKey=f;this.C=k}sA(){return this.key}VW(){return this.char}GR(){return this.ctrlKey}IR(){return this.shiftKey}FR(){return this.altKey}HR(){return this.metaKey}preventDefault(){this.C instanceof KeyboardEvent&&this.C.preventDefault()}};olympe.ui.X.qe.C=8;olympe.ui.X.qe.T=46;olympe.ui.X.qe.Ha=9;olympe.ui.X.qe.da=10;olympe.ui.X.qe.D=13;
|
|
625
625
|
olympe.ui.X.qe.R=27;olympe.ui.X.qe.cD=32;olympe.ui.X.qe.Pa=16;olympe.ui.X.qe.O=17;olympe.ui.X.qe.ma=91;olympe.ui.X.qe.za=93;olympe.ui.X.qe.Ka=38;olympe.ui.X.qe.W=40;olympe.ui.X.qe.$=37;olympe.ui.X.qe.ca=39;olympe.ui.X.qe.Oa=90;h=olympe.ui.X.qe.prototype;h.sA.K=olympe.j.J.D;h.VW.K=olympe.j.J.R;h.GR.K=olympe.j.J.T;h.IR.K=olympe.j.J.T;h.FR.K=olympe.j.J.T;h.HR.K=olympe.j.J.T;olympe.ui.X.sg=class{Hj(){}Gj(){}Ij(){}ej(){}D(){}Ak(){}T(){}fj(){}O(){}};h=olympe.ui.X.sg.prototype;h.Hj.K=new olympe.j.J(()=>olympe.ui.X.qe,[]);h.Gj.K=new olympe.j.J(()=>olympe.ui.X.qe,[]);h.Ij.K=new olympe.j.J(()=>olympe.ui.X.qe,[]);h.ej.K=new olympe.j.J(()=>String,[]);h.Ak.K=new olympe.j.J(()=>String,[]);h.fj.K=new olympe.j.J(()=>String,[]);olympe.ui.X.Zn=class extends olympe.ui.X.ZB{constructor(a){super(a);this.W=this.da=this.C=this.$=this.R=this.ca=null}Uc(a){return Q(this,()=>{const b=olympe.j.ub(olympe.ui.X.qe);a((c,d,e=!1,f=!1,g=!1,k=!1,l={})=>{I(b,new olympe.ui.X.qe(olympe.j.Ba(c),olympe.j.ic(d),olympe.j.hc(e),olympe.j.hc(f),olympe.j.hc(g),olympe.j.hc(k),olympe.j.ac.now(),l))});return b})}Hj(){null===this.ca&&(this.ca=this.Uc(function(a){this.ra().registerKeyPressed(a)}.bind(this)));return this.ca}Gj(){null===this.$&&(this.$=this.Uc(function(a){this.ra().registerKeyDown(a)}.bind(this)));
|
|
626
626
|
return this.$}Ij(){null===this.da&&(this.da=this.Uc(function(a){this.ra().registerKeyUp(a)}.bind(this)));return this.da}ej(a,b,c){null===this.R&&(this.R=new olympe.ui.X.Ae,yf(this,this.Hj(),this.R));return zf(this,a,b,c,this.R,this.D)}D(a){Af(a,this.R)}Ak(a,b,c){null===this.C&&(this.C=new olympe.ui.X.Ae,yf(this,this.Gj(),this.C));return zf(this,a,b,c,this.C,this.T)}T(a){Af(a,this.C)}fj(a,b,c){null===this.W&&(this.W=new olympe.ui.X.Ae,yf(this,this.Ij(),this.W));return zf(this,a,b,c,this.W,this.O)}O(a){Af(a,
|
|
@@ -635,7 +635,7 @@ function Cf(a,b){null===a.touches&&Bf(a);const c=olympe.j.ub(olympe.j.ac,olympe.
|
|
|
635
635
|
function Df(a){const b=olympe.j.Qa,c=olympe.j.ga,d=olympe.j.Za(olympe.ui.X.Uk);a.ma=d.wa();const e=(f,g)=>{for(f=f.Vd();null!==f&&!f.sC.run(f.Bm,g);)f=f.Jg()};a.Pa=new olympe.ui.X.Ae;a.za=new olympe.ui.X.Ae;a.kh(f=>{const g=f.sk();f=f.wh();const k=b(f.qa()),l=b(f.ta()),m=b(g.qa()),n=b(g.ta());let p,r,t,u;const v=H=>{const G=b(H.wh().qa());H=b(H.wh().ta());return new olympe.ui.X.Uk(new c(m,n),new c(k,l),new c(G.ya(k),H.ya(l)),olympe.j.ac.now())},w=olympe.ui.Na.hf(),x=H=>{d.update(v(H))},y=H=>{d.update(v(H));
|
|
636
636
|
p&&w.Ng(p);t&&w.Qj(t);u&&w.cn(u);r&&a.Ng(r);e(a.za,a.ma)},A=()=>{u&&w.cn(u);p&&w.Ng(p);r&&a.Ng(r);r=p=u=void 0};u=w.El(H=>{const G=b(H.wh().qa()).ya(k);H=b(H.wh().ta()).ya(l);if(5<Math.abs(G.valueOf())||5<Math.abs(H.valueOf()))A(),d.update(new olympe.ui.X.Uk(new c(m,n),new c(k,l),new c(olympe.j.aa.ZERO,olympe.j.aa.ZERO),olympe.j.ac.now())),e(a.Pa,a.ma),u=w.El(x),p=w.Wg(y),t=w.Hi(y),r=a.Wg(y)});p=w.Wg(A);r=a.Wg(A)});a.Ck(f=>{var g=f.Vd().wh();const k=olympe.j.Qa(g.qa()),l=olympe.j.Qa(g.ta()),m=new olympe.j.ga(k,
|
|
637
637
|
l);g=new olympe.j.ga(g.qa().ya(k),g.ta().ya(l));olympe.j.kj(g.qa(),olympe.j.aa.ZERO);olympe.j.kj(g.ta(),olympe.j.aa.ZERO);const n=new olympe.ui.X.Uk(new olympe.j.ga(olympe.j.Qa(f.Vd().sk().qa()),olympe.j.Qa(f.Vd().sk().ta())),m,g,olympe.j.ub(olympe.j.ac));d.update(n);f=()=>{const t=olympe.j.Qa(n.fq());nc(t.qa());nc(t.ta());nc(n.RD());a.dj(p);a.Mo(r);e(a.za,n)};const p=a.Bk(f),r=a.fn(f);e(a.Pa,n)})}
|
|
638
|
-
olympe.ui.X.Xv=class extends olympe.ui.X.ZB{constructor(a){super(a);this.Pa=this.za=this.ma=this.cf=this.vf=this.lg=this
|
|
638
|
+
olympe.ui.X.Xv=class extends olympe.ui.X.ZB{constructor(a){super(a);this.Pa=this.za=this.ma=this.cf=this.vf=this.lg=this.ag=this.Ha=this.Ka=this.Oa=this.sb=this.touches=this.$=this.ld=this.da=this.gd=this.T=this.Pb=this.R=this.qc=this.W=this.kc=this.ca=this.Yc=this.O=this.Eb=this.D=this.xb=this.C=this.ob=null}Da(a){const b=olympe.j.hc,c=olympe.j.Ba;return Q(this,()=>{const d=olympe.j.Za(olympe.ui.X.MouseEvent);a(Vc(this,(e,f,g,k,l=!1,m=!1,n=!1,p=!1,r=0,t=0)=>{e=new olympe.ui.X.MouseEvent([e,f],[g,
|
|
639
639
|
k],b(l),b(m),b(n),b(p),c(r),c(t),olympe.j.ac.now());d.update(e)}));return d.wa()})}Vc(a,b,c){null===this.ob&&(this.ob=this.Da(d=>{this.ra().gn(d)}));null===this.C&&(this.C=new olympe.ui.X.Ae,yf(this,this.ob,this.C));return zf(this,a,b,c,this.C,this.Pj)}Pj(a){this.C&&(Af(a,this.C),null===this.C.first&&(this.C=null,this.ob&&(this.ra().Tb.lc()||this.ra().Pl(),this.ob=null)))}Ao(){const a=olympe.j.Za(olympe.ui.X.MouseEvent);this.Vc(b=>{a.update(b)});return a.wa()}en(a,b,c){null===this.xb&&(this.xb=this.Da(d=>
|
|
640
640
|
{this.ra().hn(d)}));null===this.D&&(this.D=new olympe.ui.X.Ae,yf(this,this.xb,this.D));return zf(this,a,b,c,this.D,this.qq)}qq(a){this.D&&(Af(a,this.D),null===this.D.first&&(this.D=null,this.xb&&(this.ra().Tb.lc()||this.ra().Ql(),this.xb=null)))}Im(){const a=olympe.j.Za(olympe.ui.X.MouseEvent);this.en(b=>{a.update(b)});return a.wa()}kh(a,b,c){null===this.Eb&&(this.Eb=this.Da(d=>{this.ra().jn(d)}));null===this.O&&(this.O=new olympe.ui.X.Ae,yf(this,this.Eb,this.O));return zf(this,a,b,c,this.O,this.yk)}yk(a){this.O&&
|
|
641
641
|
(Af(a,this.O),null===this.O.first&&(this.O=null,this.Eb&&(this.ra().Tb.lc()||this.ra().Rl(),this.Eb=null)))}Bo(){const a=olympe.j.Za(olympe.ui.X.MouseEvent);this.kh(b=>{a.update(b)});return a.wa()}El(a,b,c){null===this.kc&&(this.kc=this.Da(d=>{this.ra().mn(d)}));null===this.W&&(this.W=new olympe.ui.X.Ae,yf(this,this.kc,this.W));return zf(this,a,b,c,this.W,this.cn)}cn(a){this.W&&(Af(a,this.W),null===this.W.first&&(this.W=null,this.kc&&(this.ra().Tb.lc()||this.ra().Ul(),this.kc=null)))}qk(){const a=
|
|
@@ -645,8 +645,8 @@ olympe.j.Za(olympe.ui.X.MouseEvent);this.El(b=>{a.update(b)});return a.wa()}Qo(a
|
|
|
645
645
|
(this.da=new olympe.ui.X.Ae,yf(this,this.gd,this.da));return zf(this,a,b,c,this.da,this.wq)}wq(a){this.da&&(Af(a,this.da),null===this.da.first&&(this.da=null,this.gd&&(this.ra().Tb.lc()||this.ra().Xl(),this.gd=null)))}Mm(){const a=olympe.j.Za(olympe.ui.X.hk);this.Ro(b=>{a.update(b)});return a.wa()}Wg(a,b,c){null===this.Yc&&(this.Yc=this.Da(d=>{this.ra().pn(d)}));null===this.ca&&(this.ca=new olympe.ui.X.Ae,yf(this,this.Yc,this.ca));return zf(this,a,b,c,this.ca,this.Ng)}Ng(a){this.ca&&(Af(a,this.ca),
|
|
646
646
|
null===this.ca.first&&(this.ca=null,this.Yc&&(this.ra().Tb.lc()||this.ra().Wl(),this.Yc=null)))}Do(){const a=olympe.j.Za(olympe.ui.X.MouseEvent),b=this.Wg(c=>{a.update(c)});olympe.j.yb().Ve(()=>{this.Ng(b)});return a.wa()}Ih(){const a=olympe.j.Za(olympe.j.ia).update(olympe.j.ia.pb),b=this.gj(()=>{a.update(olympe.j.ia.C)}),c=this.Hi(()=>{a.update(olympe.j.ia.pb)});olympe.j.yb().Ve(()=>{this.zk(b);this.Qj(c)});return a.wa()}Ym(){const a=olympe.j.Za(olympe.j.ia).update(olympe.j.ia.pb),b=this.kh(()=>
|
|
647
647
|
{a.update(olympe.j.ia.C)}),c=this.Wg(()=>{a.update(olympe.j.ia.pb)});olympe.j.yb().Ve(()=>{this.yk(b);this.Ng(c)});return a.wa()}Zm(){const a=olympe.j.Za(olympe.j.ia).update(olympe.j.ia.C),b=this.Wg(()=>{a.update(olympe.j.ia.C)}),c=this.kh(()=>{a.update(olympe.j.ia.pb)});olympe.j.yb().Ve(()=>{this.yk(c);this.Ng(b)});return a.wa()}Ck(a,b,c){null===this.touches&&Bf(this);null===this.sb&&(this.sb=new olympe.ui.X.Ae);return zf(this,a,b,c,this.sb,this.No)}No(a){Af(a,this.sb)}Xo(a,b,c){null===this.touches&&
|
|
648
|
-
Bf(this);null===this.Oa&&(this.Oa=new olympe.ui.X.Ae);return zf(this,a,b,c,this.Oa,this.zq)}zq(a){Af(a,this.Oa)}Bk(a,b,c){null===this.touches&&Bf(this);null===this.Ka&&(this.Ka=new olympe.ui.X.Ae);return zf(this,a,b,c,this.Ka,this.dj)}dj(a){Af(a,this.Ka)}fn(a,b,c){null===this.touches&&Bf(this);null===this.Ha&&(this.Ha=new olympe.ui.X.Ae);return zf(this,a,b,c,this.Ha,this.Mo)}Mo(a){Af(a,this.Ha)}Pm(){null===this.lg&&(this.lg=Cf(this,this.Xo.bind(this)));return this.lg}Qm(){null===this
|
|
649
|
-
Cf(this,this.Ck.bind(this)));return this
|
|
648
|
+
Bf(this);null===this.Oa&&(this.Oa=new olympe.ui.X.Ae);return zf(this,a,b,c,this.Oa,this.zq)}zq(a){Af(a,this.Oa)}Bk(a,b,c){null===this.touches&&Bf(this);null===this.Ka&&(this.Ka=new olympe.ui.X.Ae);return zf(this,a,b,c,this.Ka,this.dj)}dj(a){Af(a,this.Ka)}fn(a,b,c){null===this.touches&&Bf(this);null===this.Ha&&(this.Ha=new olympe.ui.X.Ae);return zf(this,a,b,c,this.Ha,this.Mo)}Mo(a){Af(a,this.Ha)}Pm(){null===this.lg&&(this.lg=Cf(this,this.Xo.bind(this)));return this.lg}Qm(){null===this.ag&&(this.ag=
|
|
649
|
+
Cf(this,this.Ck.bind(this)));return this.ag}Om(){null===this.vf&&(this.vf=Cf(this,this.Bk.bind(this)));return this.vf}Nm(){null===this.cf&&(this.cf=Cf(this,this.fn.bind(this)));return this.cf}To(a,b,c){null===this.ma&&Q(this,()=>{Df(this)});null===this.Pa&&(this.Pa=new olympe.ui.X.Ae);return zf(this,a,b,c,this.Pa,this.xq)}xq(a){Af(a,this.Pa)}So(a,b,c){null===this.ma&&Q(this,()=>{Df(this)});null===this.za&&(this.za=new olympe.ui.X.Ae);return zf(this,a,b,c,this.za,this.dn)}dn(a){Af(a,this.za)}Fo(){null===
|
|
650
650
|
this.ma&&Q(this,()=>{Df(this)});return this.ma}};olympe.ui.X.Xv.Aa=[olympe.ui.X.nc];h=olympe.ui.X.Xv.prototype;h.Ao.K=new olympe.j.J(()=>olympe.ui.X.MouseEvent,[]);h.Im.K=new olympe.j.J(()=>olympe.ui.X.MouseEvent,[]);h.Bo.K=new olympe.j.J(()=>olympe.ui.X.MouseEvent,[]);h.qk.K=new olympe.j.J(()=>olympe.ui.X.MouseEvent,[]);h.Co.K=new olympe.j.J(()=>olympe.ui.X.MouseEvent,[]);h.Km.K=new olympe.j.J(()=>olympe.ui.X.MouseEvent,[]);h.Lm.K=new olympe.j.J(()=>olympe.ui.X.MouseEvent,[]);
|
|
651
651
|
h.Mm.K=new olympe.j.J(()=>olympe.ui.X.hk,[]);h.Do.K=new olympe.j.J(()=>olympe.ui.X.MouseEvent,[]);h.Ih.K=olympe.j.J.T;h.Ym.K=olympe.j.J.T;h.Zm.K=olympe.j.J.T;h.Pm.K=new olympe.j.J(()=>olympe.ui.X.TouchEvent,[]);h.Qm.K=new olympe.j.J(()=>olympe.ui.X.TouchEvent,[]);h.Om.K=new olympe.j.J(()=>olympe.ui.X.TouchEvent,[]);h.Nm.K=new olympe.j.J(()=>olympe.ui.X.TouchEvent,[]);h.Fo.K=new olympe.j.J(()=>olympe.ui.X.Uk,[]);olympe.ui.X.GestureEvent=class extends olympe.ui.X.Event{constructor(a,b,c,d,e,f,g,k,l,m,n){super(n);this.C=a;this.W=b;this.$=c;this.O=d;this.T=e;this.D=f;this.rotation=g;this.R=k;this.first=l;this.da=m}fq(){this.C instanceof olympe.j.ga||(this.C=new olympe.j.ga(this.C[0],this.C[1]));return this.C}yW(){return this.W}GW(){return this.$}fW(){return this.O}jq(){return this.T}xX(){this.D instanceof olympe.j.ga||(this.D=new olympe.j.ga(this.D[0],this.D[1]));return this.D}mX(){return this.rotation}nW(){return this.R}KX(){return this.first}MR(){return this.da}};
|
|
652
652
|
h=olympe.ui.X.GestureEvent.prototype;h.fq.K=olympe.j.J.W;h.yW.K=olympe.j.J.D;h.GW.K=olympe.j.J.D;h.fW.K=olympe.j.J.D;h.jq.K=olympe.j.J.D;h.xX.K=olympe.j.J.W;h.mX.K=olympe.j.J.D;h.nW.K=olympe.j.J.D;h.KX.K=olympe.j.J.T;h.MR.K=olympe.j.J.T;olympe.ui.X.Gr=class{constructor(a,b,c,d,e,f){this.O=a;this.C=b;this.D=c;this.rotationAngle=d;this.force=e;this.identifier=f}sk(){return this.O}wh(){return this.C}tC(){return this.D}XN(){return this.rotationAngle}sN(){return this.force}QW(){return this.identifier}};h=olympe.ui.X.Gr.prototype;h.sk.K=olympe.j.J.W;h.wh.K=olympe.j.J.W;h.tC.K=olympe.j.J.W;h.XN.K=olympe.j.J.D;h.sN.K=olympe.j.J.D;h.QW.K=new olympe.j.J(()=>String,[]);olympe.ui.X.TouchEvent=class extends olympe.ui.X.Event{constructor(a,b){super(b);this.touches=a}D(){return this.touches}C(){return this.touches.Vd()}};olympe.ui.X.TouchEvent.prototype.D.K=new olympe.j.J(()=>olympe.j.Map,[]);olympe.ui.X.TouchEvent.prototype.C.K=new olympe.j.J(()=>olympe.ui.X.Gr,[]);olympe.ui.X.Uk=class extends olympe.ui.X.Event{constructor(a,b,c,d){super(d);this.O=a;this.D=c;this.C=b}sk(){return this.O}wh(){return this.C}fq(){return this.D}};olympe.ui.X.Uk.prototype.sk.K=olympe.j.J.W;olympe.ui.X.Uk.prototype.wh.K=olympe.j.J.W;olympe.ui.X.Uk.prototype.fq.K=olympe.j.J.W;olympe.ui.X.hk=class extends olympe.ui.X.MouseEvent{constructor(a,b,c,d,e,f,g,k,l,m,n){super(c,d,e,f,g,k,l,m,n);this.deltaX=a;this.deltaY=b}R(){return this.deltaX}T(){return this.deltaY}};olympe.ui.X.hk.prototype.R.K=olympe.j.J.D;olympe.ui.X.hk.prototype.T.K=olympe.j.J.D;olympe.ui.X.Md=class{sl(){}xl(){}tl(){}Rm(){}ul(){}Jm(){}wl(){}vl(){}Bq(){}rq(){}Hq(){}Aq(){}Cq(){}sq(){}ks(){}hs(){}Dq(){}tq(){}Eq(){}uq(){}Gq(){}yq(){}Fq(){}za(){}};h=olympe.ui.X.Md.prototype;h.sl.K=new olympe.j.J(()=>olympe.ui.X.GestureEvent,[]);h.xl.K=new olympe.j.J(()=>olympe.ui.X.GestureEvent,[]);h.tl.K=new olympe.j.J(()=>olympe.ui.X.GestureEvent,[]);h.Rm.K=new olympe.j.J(()=>olympe.ui.X.GestureEvent,[]);h.ul.K=new olympe.j.J(()=>olympe.ui.X.GestureEvent,[]);
|
|
@@ -656,16 +656,16 @@ a)}.bind(this)));return this.Pa}Jm(a){null===this.Ha&&(this.Ha=this.qb(function(
|
|
|
656
656
|
c){null===this.$&&(this.$=new olympe.ui.X.Ae,yf(this,this.xl(),this.$));return zf(this,a,b,c,this.$,this.Aq)}Aq(a){Af(a,this.$)}Cq(a,b,c){null===this.D&&(this.D=new olympe.ui.X.Ae,yf(this,this.tl(),this.D));return zf(this,a,b,c,this.D,this.sq)}sq(a){Af(a,this.D)}ks(a,b,c){null===this.ca&&(this.ca=new olympe.ui.X.Ae,yf(this,this.Rm(),this.ca));return zf(this,a,b,c,this.ca,this.hs)}hs(a){Af(a,this.ca)}Dq(a,b,c,d){null===this.O&&(this.O=new olympe.ui.X.Ae,yf(this,this.ul(b),this.O));return zf(this,a,
|
|
657
657
|
c,d,this.O,this.tq)}tq(a){Af(a,this.O)}Eq(a,b,c,d){null===this.R&&(this.R=new olympe.ui.X.Ae,yf(this,this.Jm(b),this.R));return zf(this,a,c,d,this.R,this.uq)}uq(a){Af(a,this.R)}Gq(a,b,c){null===this.W&&(this.W=new olympe.ui.X.Ae,yf(this,this.wl(),this.W));return zf(this,a,b,c,this.W,this.yq)}yq(a){Af(a,this.W)}Fq(a,b,c){null===this.T&&(this.T=new olympe.ui.X.Ae,yf(this,this.vl(),this.T));return zf(this,a,b,c,this.T,this.za)}za(a){Af(a,this.T)}};olympe.ui.X.Hv.Aa=[olympe.ui.X.Md];h=olympe.ui.X.Hv.prototype;
|
|
658
658
|
h.sl.K=new olympe.j.J(()=>olympe.ui.X.GestureEvent,[]);h.xl.K=new olympe.j.J(()=>olympe.ui.X.GestureEvent,[]);h.tl.K=new olympe.j.J(()=>olympe.ui.X.GestureEvent,[]);h.Rm.K=new olympe.j.J(()=>olympe.ui.X.GestureEvent,[]);h.ul.K=new olympe.j.J(()=>olympe.ui.X.GestureEvent,[]);h.Jm.K=new olympe.j.J(()=>olympe.ui.X.GestureEvent,[]);h.wl.K=new olympe.j.J(()=>olympe.ui.X.GestureEvent,[]);h.vl.K=new olympe.j.J(()=>olympe.ui.X.GestureEvent,[]);olympe.ui.media={};olympe.ui.media.MediaStream=class extends olympe.ui.wf{Ms(a,b){this.ra().Ms(a,b?b.qa():void 0,b?b.ta():void 0)}};olympe.ui.media.Ir=class extends olympe.ui.media.MediaStream{constructor(a){super(a);this.status=olympe.j.Za(olympe.j.ia);this.ra().ma(b=>{b?this.status.update(olympe.j.ia.C):this.status.update(olympe.j.ia.pb)})}C(){return this.status.wa()}};olympe.ui.media.Ir.prototype.C.K=olympe.j.J.T;olympe.ui.media.oi=class extends olympe.ui.media.Ir{constructor(a,b){super(olympe.ui.Na.C(olympe.N.media.oi,olympe.host.ab.jb.BJ));olympe.j.Wa([a],c=>{if(c instanceof olympe.ui.media.bc.Am)this.ra().RE(c.ra());else{if(null===c||void 0===c)throw Error('LocalUserStream cannot start: Video device is null or undefined');throw Error('Cannot handle MediaDevice of unknown type '+c.bb());}});olympe.j.Wa([b],c=>{if(c instanceof olympe.ui.media.bc.op)this.ra().YA(c.ra());else{if(null===c||void 0===c)throw Error('LocalUserStream cannot start: Audio device is null or undefined');
|
|
659
|
-
throw Error('Cannot handle MediaDevice of unknown type '+c.bb());}})}Ou(a){this.ra().Ou(a)}hv(a){this.ra().hv(a)}Ho(){this.ra().Ho()}};olympe.ui.media.DK=class extends olympe.ui.media.Ir{constructor(){super(olympe.ui.Na.C(olympe.N.media.DK,olympe.host.ab.jb.RS))}};olympe.ui.media.Op=class extends olympe.ui.wf{constructor(){super(olympe.ui.Na.C(olympe.N.media.Op,olympe.host.ab.jb.CJ))}Rw(a){this.ra().Rw(b=>{const c=[];b.forEach(d=>{c.push(new olympe.ui.media.bc.Am(olympe.j.ic(d.id),olympe.j.ic(d.name)))});a(c)})}Qw(a){this.ra().Qw(b=>{const c=[];b.forEach(d=>{c.push(new olympe.ui.media.bc.op(olympe.j.ic(d.id),olympe.j.ic(d.name)))});a(c)})}};olympe.ui.media.Rt=class extends olympe.ui.media.MediaStream{constructor(){super(olympe.ui.Na.C(olympe.N.media.Rt,olympe.host.ab.jb.DJ))}Hk(a){this.ra().Hk(a)}};olympe.ui.media.bc={};olympe.ui.media.bc.Np=class extends olympe.ui.wf{bb(){}};olympe.ui.media.bc.op=class extends olympe.ui.media.bc.Np{constructor(a,b){super(olympe.ui.Na.C(olympe.N.media.bc.op,olympe.host.ab.jb.AJ));this.name=b;this.id=a;this.ra().lp(a,this.name)}bb(){return this.name}};olympe.ui.media.bc.Am=class extends olympe.ui.media.bc.Np{constructor(a,b){super(olympe.ui.Na.C(olympe.N.media.bc.Am,olympe.host.ab.jb.EJ));this.name=b;this.id=a;this.ra().lp(a,b)}bb(){return this.name}toString(){return'VideoInputDevice [name: '+this.name+']'}};olympe.ui.media.bc.i_=class extends olympe.ui.media.bc.op{constructor(){super(olympe.ui.ha.Lp.qG,'Default microphone')}};olympe.ui.media.bc.j_=class extends olympe.ui.media.bc.Am{constructor(){super(olympe.ui.ha.Lp.rG,'Default camera')}};olympe.ui.media.bc.V_=class extends olympe.ui.media.bc.Am{constructor(){super(olympe.ui.ha.Lp.JG,'Facing camera')}};olympe.ui.media.bc.OZ=class extends olympe.ui.media.bc.Am{constructor(){super(olympe.ui.ha.Lp.CG,'Environment (back) camera')}};olympe.ui.F={};function Ef(a){null===a.sb&&(a.sb=Q(a,()=>olympe.j.Za(olympe.j.ia).update(olympe.j.ia.pb)),a.
|
|
660
|
-
olympe.ui.F.Element=class extends olympe.ui.wf{constructor(a){super(a);this.$=this.wg=this.zg=this.sb=this.hidden=null}
|
|
661
|
-
olympe.j.
|
|
662
|
-
b){this.
|
|
659
|
+
throw Error('Cannot handle MediaDevice of unknown type '+c.bb());}})}Ou(a){this.ra().Ou(a)}hv(a){this.ra().hv(a)}Ho(){this.ra().Ho()}};olympe.ui.media.DK=class extends olympe.ui.media.Ir{constructor(){super(olympe.ui.Na.C(olympe.N.media.DK,olympe.host.ab.jb.RS))}};olympe.ui.media.Op=class extends olympe.ui.wf{constructor(){super(olympe.ui.Na.C(olympe.N.media.Op,olympe.host.ab.jb.CJ))}Rw(a){this.ra().Rw(b=>{const c=[];b.forEach(d=>{c.push(new olympe.ui.media.bc.Am(olympe.j.ic(d.id),olympe.j.ic(d.name)))});a(c)})}Qw(a){this.ra().Qw(b=>{const c=[];b.forEach(d=>{c.push(new olympe.ui.media.bc.op(olympe.j.ic(d.id),olympe.j.ic(d.name)))});a(c)})}};olympe.ui.media.Rt=class extends olympe.ui.media.MediaStream{constructor(){super(olympe.ui.Na.C(olympe.N.media.Rt,olympe.host.ab.jb.DJ))}Hk(a){this.ra().Hk(a)}};olympe.ui.media.bc={};olympe.ui.media.bc.Np=class extends olympe.ui.wf{bb(){}};olympe.ui.media.bc.op=class extends olympe.ui.media.bc.Np{constructor(a,b){super(olympe.ui.Na.C(olympe.N.media.bc.op,olympe.host.ab.jb.AJ));this.name=b;this.id=a;this.ra().lp(a,this.name)}bb(){return this.name}};olympe.ui.media.bc.Am=class extends olympe.ui.media.bc.Np{constructor(a,b){super(olympe.ui.Na.C(olympe.N.media.bc.Am,olympe.host.ab.jb.EJ));this.name=b;this.id=a;this.ra().lp(a,b)}bb(){return this.name}toString(){return'VideoInputDevice [name: '+this.name+']'}};olympe.ui.media.bc.i_=class extends olympe.ui.media.bc.op{constructor(){super(olympe.ui.ha.Lp.qG,'Default microphone')}};olympe.ui.media.bc.j_=class extends olympe.ui.media.bc.Am{constructor(){super(olympe.ui.ha.Lp.rG,'Default camera')}};olympe.ui.media.bc.V_=class extends olympe.ui.media.bc.Am{constructor(){super(olympe.ui.ha.Lp.JG,'Facing camera')}};olympe.ui.media.bc.OZ=class extends olympe.ui.media.bc.Am{constructor(){super(olympe.ui.ha.Lp.CG,'Environment (back) camera')}};olympe.ui.F={};function Ef(a){null===a.sb&&(a.sb=Q(a,()=>olympe.j.Za(olympe.j.ia).update(olympe.j.ia.pb)),a.te().ns(()=>{a.sb.update(olympe.j.ia.C)}),a.te().ms(()=>{a.sb.update(olympe.j.ia.pb)}))}
|
|
660
|
+
olympe.ui.F.Element=class extends olympe.ui.wf{constructor(a){super(a);this.$=this.wg=this.zg=this.sb=this.hidden=null}te(){return this.ra()}Tm(){return olympe.ui.Na.Tm(this)}xh(){}$d(a){a&&(this.Ma(a.Zp()),this.Yg(a.bq(),olympe.ui.ha.Ah.Uf,olympe.ui.ha.df.Uf,a.aq(),a.$p()),this.ng(a.MN()))}Ma(a){this.te().Ma(olympe.j.cg(a,b=>b instanceof olympe.j.Color?b.ei():void 0));return this}ws(a){this.te().ws(a);return this}Yg(a,b,c,d,e){this.te().Yg(a,b,c,olympe.j.cg(d,f=>f.qa()),olympe.j.cg(d,f=>f.ta()),
|
|
661
|
+
olympe.j.cg(e,f=>f.qa()),olympe.j.cg(e,f=>f.ta()));return this}us(a){this.te().us(a);return this}Lq(a){this.te().Lq(a);return this}kp(a){this.te().kp(a);return this}rs(a){this.te().rs(olympe.j.cg(a,b=>b.qa()),olympe.j.cg(a,b=>b.ta()));return this}ss(a){olympe.j.Wa([a],b=>{this.te().ss(b.qa(),b.ta())});return this}ng(a){this.te().ng(a);return this}na(){}rd(a){null===this.hidden&&Q(this,()=>{this.hidden=olympe.j.Wc(!1)});K(this.hidden,a);this.te().rd(a);return this}Gs(a){this.te().Gs(a);return this}ib(a,
|
|
662
|
+
b){this.te().ib(a,b)}es(){null===this.hidden&&Q(this,()=>{this.hidden=olympe.j.Wc(!1)});return this.hidden}nu(){Ef(this);return this.sb.wa()}mj(a=!0){Ef(this);this.te().mj(a);return this}yn(){Ef(this);this.te().yn();return this}yh(a){this.te().yh(a);return this}Uu(a){this.te().Uu(a);return this}OR(a,b={}){if(olympe.ui.Na.$())return this;this.$||(this.$=new olympe.j.ee('tooltipContext'),this.$.onDestroy(()=>{this.$=null}));let c,d;const e=null!=(d=b.delay)?d:null!=(c=olympe.ui.F.Element.C.delay)?c:
|
|
663
663
|
500;this.$.run(()=>{let f=!1;const g=olympe.ui.Na.hf();let k=null;const l=p=>{const r=olympe.j.Qa(a);r&&0!==r.valueOf().length&&(p?(Xc('tooltipTimeout'),k=Wc(()=>{k=null;const t=Object.assign({},olympe.ui.F.Element.C,b);null!=t.position||(t.position=this.xh());g.cF(a,t);f=!0},e.valueOf(),'tooltipTimeout')):null!==k?(Xc(k),k=null):(g.lx(),f=!1))},m=this.gj(p=>{l(!0,p)}),n=this.Hi(p=>{l(!1,p)});this.$.onDestroy(()=>{null!==k&&(Xc(k),k=null);f&&(g.lx(),f=!1);this.zk(m);this.Qj(n)})});return this}NR(){this.$&&
|
|
664
|
-
this.$.destroy();this.$=null;return this}Da(){null===this.zg&&Q(this,()=>{this.zg=new olympe.ui.X.Xv(this.
|
|
664
|
+
this.$.destroy();this.$=null;return this}Da(){null===this.zg&&Q(this,()=>{this.zg=new olympe.ui.X.Xv(this.te())});return this.zg}Vc(a,b,c){return this.Da().Vc(a,b,c)}Pj(a){this.Da().Pj(a)}en(a,b,c){return this.Da().en(a,b,c)}qq(a){this.Da().qq(a)}Ao(){return this.Da().Ao()}Im(){return this.Da().Im()}Bo(){return this.Da().Bo()}Do(){return this.Da().Do()}qk(){return this.Da().qk()}Co(){return this.Da().Co()}Km(){return this.Da().Km()}Lm(){return this.Da().Lm()}Mm(){return this.Da().Mm()}El(a,b,c){return this.Da().El(a,
|
|
665
665
|
b,c)}cn(a){this.Da().cn(a)}Qo(a,b,c){return this.Da().Qo(a,b,c)}vq(a){this.Da().vq(a)}gj(a,b,c){return this.Da().gj(a,b,c)}zk(a){this.Da().zk(a)}Hi(a,b,c){return this.Da().Hi(a,b,c)}Qj(a){this.Da().Qj(a)}Ro(a,b,c){return this.Da().Ro(a,b,c)}wq(a){this.Da().wq(a)}kh(a,b,c){return this.Da().kh(a,b,c)}yk(a){this.Da().yk(a)}Wg(a,b,c){return this.Da().Wg(a,b,c)}Ng(a){this.Da().Ng(a)}Ih(){return this.Da().Ih()}Ym(){return this.Da().Ym()}Zm(){return this.Da().Zm()}Pm(){return this.Da().Pm()}Qm(){return this.Da().Qm()}Om(){return this.Da().Om()}Nm(){return this.Da().Nm()}Ck(a,
|
|
666
|
-
b,c){return this.Da().Ck(a,b,c)}No(a){this.Da().No(a)}Bk(a,b,c){return this.Da().Bk(a,b,c)}dj(a){this.Da().dj(a)}Xo(a,b,c){return this.Da().Xo(a,b,c)}zq(a){this.Da().zq(a)}fn(a,b,c){return this.Da().fn(a,b,c)}Mo(a){this.Da().Mo(a)}Fo(){return this.Da().Fo()}To(a,b,c){return this.Da().To(a,b,c)}So(a,b,c){return this.Da().So(a,b,c)}xq(a){this.Da().xq(a)}dn(a){this.Da().dn(a)}qb(){this.wg||Q(this,function(){this.wg=new olympe.ui.X.Hv(this.
|
|
666
|
+
b,c){return this.Da().Ck(a,b,c)}No(a){this.Da().No(a)}Bk(a,b,c){return this.Da().Bk(a,b,c)}dj(a){this.Da().dj(a)}Xo(a,b,c){return this.Da().Xo(a,b,c)}zq(a){this.Da().zq(a)}fn(a,b,c){return this.Da().fn(a,b,c)}Mo(a){this.Da().Mo(a)}Fo(){return this.Da().Fo()}To(a,b,c){return this.Da().To(a,b,c)}So(a,b,c){return this.Da().So(a,b,c)}xq(a){this.Da().xq(a)}dn(a){this.Da().dn(a)}qb(){this.wg||Q(this,function(){this.wg=new olympe.ui.X.Hv(this.te())}.bind(this));return this.wg}sl(){return this.qb().sl()}xl(){return this.qb().xl()}tl(){return this.qb().tl()}Rm(){return this.qb().Rm()}ul(a){return this.qb().ul(a||
|
|
667
667
|
250)}Jm(){return this.qb().Jm()}wl(){return this.qb().wl()}vl(){return this.qb().vl()}Bq(a,b,c){return this.qb().Bq(a,b,c)}rq(a){this.qb().rq(a)}Hq(a,b,c){return this.qb().Hq(a,b,c)}Aq(a){this.qb().Aq(a)}Cq(a,b,c){return this.qb().Cq(a,b,c)}sq(a){this.qb().sq(a)}ks(a,b,c){return this.qb().ks(a,b,c)}hs(a){this.qb().hs(a)}Dq(a,b,c,d){return this.qb().Dq(a,b,c,d)}tq(a){this.qb().tq(a)}Eq(a,b,c,d){return this.qb().Eq(a,b,c,d)}uq(a){this.qb().uq(a)}Gq(a,b,c){return this.qb().Gq(a,b,c)}yq(a){this.qb().yq(a)}Fq(a,
|
|
668
|
-
b,c){return this.qb().Fq(a,b,c)}za(a){this.qb().za(a)}};olympe.ui.F.Element.C={fontSize:14,delay:500};olympe.ui.F.Element.$=a=>{olympe.ui.F.Element.C=a};olympe.ui.F.Element.prototype.en.Jr=!0;olympe.ui.F.Element.prototype.Vc.Jr=!0;olympe.ui.F.Element.Aa=[olympe.ui.X.nc,olympe.ui.X.Md];h=olympe.ui.F.Element.prototype;h.
|
|
668
|
+
b,c){return this.qb().Fq(a,b,c)}za(a){this.qb().za(a)}};olympe.ui.F.Element.C={fontSize:14,delay:500};olympe.ui.F.Element.$=a=>{olympe.ui.F.Element.C=a};olympe.ui.F.Element.prototype.en.Jr=!0;olympe.ui.F.Element.prototype.Vc.Jr=!0;olympe.ui.F.Element.Aa=[olympe.ui.X.nc,olympe.ui.X.Md];h=olympe.ui.F.Element.prototype;h.te.K=new olympe.j.J(()=>olympe.N.F.Element,[]);h.xh.K=olympe.j.J.W;h.$d.K=new olympe.j.J(()=>{},[]);h.Ma.K=olympe.j.J.C([]);h.ws.K=olympe.j.J.C([]);h.Yg.K=olympe.j.J.C([]);h.us.K=olympe.j.J.C([]);
|
|
669
669
|
h.Lq.K=olympe.j.J.C([]);h.kp.K=olympe.j.J.C([]);h.rs.K=olympe.j.J.C([]);h.ss.K=olympe.j.J.C([]);h.ng.K=olympe.j.J.C([]);h.na.K=olympe.j.J.W;h.rd.K=olympe.j.J.C([]);h.Gs.K=olympe.j.J.C([]);h.ib.K=olympe.j.J.C([]);h.es.K=olympe.j.J.T;h.nu.K=olympe.j.J.T;h.mj.K=olympe.j.J.C([]);h.yn.K=olympe.j.J.C([]);h.yh.K=olympe.j.J.C([]);h.Uu.K=olympe.j.J.C([]);h.OR.K=olympe.j.J.C([]);h.NR.K=olympe.j.J.C([]);h.Da.K=new olympe.j.J(()=>olympe.ui.X.Xv,[]);h.Vc.K=new olympe.j.J(()=>String,[]);
|
|
670
670
|
h.Pj.K=new olympe.j.J(()=>{},[]);h.en.K=new olympe.j.J(()=>String,[]);h.qq.K=new olympe.j.J(()=>{},[]);h.Ao.K=new olympe.j.J(()=>olympe.ui.X.MouseEvent,[]);h.Im.K=new olympe.j.J(()=>olympe.ui.X.MouseEvent,[]);h.Bo.K=new olympe.j.J(()=>olympe.ui.X.MouseEvent,[]);h.Do.K=new olympe.j.J(()=>olympe.ui.X.MouseEvent,[]);h.qk.K=new olympe.j.J(()=>olympe.ui.X.MouseEvent,[]);h.Co.K=new olympe.j.J(()=>olympe.ui.X.MouseEvent,[]);h.Km.K=new olympe.j.J(()=>olympe.ui.X.MouseEvent,[]);
|
|
671
671
|
h.Lm.K=new olympe.j.J(()=>olympe.ui.X.MouseEvent,[]);h.Mm.K=new olympe.j.J(()=>olympe.ui.X.hk,[]);h.El.K=new olympe.j.J(()=>String,[]);h.cn.K=new olympe.j.J(()=>{},[]);h.Qo.K=new olympe.j.J(()=>String,[]);h.vq.K=new olympe.j.J(()=>{},[]);h.gj.K=new olympe.j.J(()=>String,[]);h.zk.K=new olympe.j.J(()=>{},[]);h.Hi.K=new olympe.j.J(()=>String,[]);h.Qj.K=new olympe.j.J(()=>{},[]);h.Ro.K=new olympe.j.J(()=>String,[]);h.wq.K=new olympe.j.J(()=>{},[]);h.kh.K=new olympe.j.J(()=>String,[]);
|
|
@@ -730,48 +730,48 @@ this.C.Cd(),this.na().qa()],(e,f,g)=>oc(pc(olympe.j.aa.ZERO,e.ya(f.Sa(10))),g.ya
|
|
|
730
730
|
olympe.ui.F.pf.prototype.T.Jr=!0;olympe.ui.F.pf.prototype.O.Jr=!0;olympe.ui.F.pf.Aa=[olympe.ui.X.sg];h=olympe.ui.F.pf.prototype;h.bj.K=new olympe.j.J(()=>olympe.N.F.pf,[]);h.ci.K=olympe.j.J.C([]);h.Qr.K=olympe.j.J.C([]);h.ww.K=olympe.j.J.C([]);h.Gx.K=olympe.j.J.C([]);h.appendChild.K=olympe.j.J.C([]);h.removeChild.K=olympe.j.J.C([]);h.clear.K=olympe.j.J.C([]);h.na.K=olympe.j.J.W;h.Cd.K=olympe.j.J.D;h.Ce.K=olympe.j.J.D;h.xh.K=olympe.j.J.W;h.Hj.K=new olympe.j.J(()=>olympe.ui.X.qe,[]);
|
|
731
731
|
h.ej.K=new olympe.j.J(()=>String,[]);h.Gj.K=new olympe.j.J(()=>olympe.ui.X.qe,[]);h.Ak.K=new olympe.j.J(()=>String,[]);h.Ij.K=new olympe.j.J(()=>olympe.ui.X.qe,[]);h.fj.K=new olympe.j.J(()=>String,[]);h.QR.K=new olympe.j.J(()=>String,[]);h.tI.K=olympe.j.J.C([]);h.cF.K=olympe.j.J.C([]);h.lx.K=olympe.j.J.C([]);function T(a){return a.ra()}
|
|
732
732
|
olympe.ui.F.mb=class extends olympe.ui.F.Element{constructor(a,b){super(a);this.Pa=olympe.j.dd();this.position=olympe.j.Za(olympe.j.ga);M(this.position,new olympe.j.ga(olympe.j.aa.ZERO,olympe.j.aa.ZERO));this.qc=null;this.RA=!1;this.parent=olympe.j.Za(olympe.ui.F.Element);void 0!==b&&this.Gb(b);T(this).oe(this.position.wa().qa());T(this).Fe(this.position.wa().ta());T(this).Cg(this.Pa.qa());T(this).Ag(this.Pa.ta())}setPosition(a){olympe.j.Zb(a)?this.position.repeat(a):this.position.update(a);return this}ae(){return this.position.wa()}qa(){return this.position.wa().qa()}ta(){return this.position.wa().ta()}Gb(a){this.RA=
|
|
733
|
-
!0;K(this.Pa,a);return this}na(){return this.Pa}Cd(){return this.Pa.qa()}Ce(){return this.Pa.ta()}Wb(a){T(this).Wb(a);return this}Ld(a,b){this.ad(a);this.nd(b);return this}ad(a){T(this).ad(a)}nd(a){T(this).nd(a.ei())}Oq(a){T(this).Oq(a);return this}$g(a,b,c,d,e){T(this).$g(olympe.j.
|
|
733
|
+
!0;K(this.Pa,a);return this}na(){return this.Pa}Cd(){return this.Pa.qa()}Ce(){return this.Pa.ta()}Wb(a){T(this).Wb(a);return this}Ld(a,b){this.ad(a);this.nd(b);return this}ad(a){T(this).ad(a)}nd(a){T(this).nd(a.ei())}Oq(a){T(this).Oq(a);return this}$g(a,b,c,d,e){T(this).$g(olympe.j.cg(a,f=>f.qa()),olympe.j.cg(a,f=>f.ta()),b||0,c||0,olympe.j.cg(d,f=>f.ei()),e);return this}eZ(a,b,c,d,e){olympe.j.Wa([c,b,e,d,a],(f,g,k,l,m)=>{T(this).$g(f*Math.cos(g),f*Math.sin(g),k*(1-l/100),k*l/100,m.ei())});return this}setScale(a){olympe.j.Wa([a],
|
|
734
734
|
b=>{T(this).dv(b.qa(),b.ta())});return this}iZ(a){T(this).dv(a,a);return this}ah(a){T(this).ah(a);return this}getParent(){return this.parent.wa()}Ef(a){olympe.j.Zb(a)?this.parent.repeat(a):this.parent.update(a);return this}xh(){null===this.qc&&Q(this,()=>{this.qc=new olympe.j.ga(0,0);olympe.j.Wa([this.parent,this.ae()],(a,b)=>{const c=a.xh(),d=this.qc;a instanceof olympe.ui.F.wd?(a=a.T(),olympe.j.Wa([b.qa(),c.qa(),a.qa()],(e,f,g)=>{d.oe(olympe.j.Ba(e).Sa(f).ya(g))}),olympe.j.Wa([b.ta(),c.ta(),a.ta()],
|
|
735
735
|
(e,f,g)=>{d.Fe(olympe.j.Ba(e).Sa(f).ya(g))})):(olympe.j.Wa([b.qa(),c.qa()],(e,f)=>{d.oe(olympe.j.Ba(e).Sa(f))}),olympe.j.Wa([b.ta(),c.ta()],(e,f)=>{d.Fe(olympe.j.Ba(e).Sa(f))}))})});return this.qc}Tj(a){T(this).Tj(a);return this}Bg(){return this}$d(a){a&&(super.$d(a),this.Ld(a.zi(),a.pl()),this.Wb(a.cq()),this.RA||this.Gb(a.na()),this.$g(a.Yr(),a.Zr(),a.$r(),a.Wr(),a.Xr()))}Bf(){T(this).Bf()}Ii(a){T(this).nE(b=>{let c=!1;for(const d of b.children)if(d===this.Tm()){c=!0;a(d);break}if(!c){const d=new MutationObserver(e=>
|
|
736
736
|
{for(const f of e)f.addedNodes.forEach(g=>{1===g.nodeType&&g===this.Tm()&&(d.disconnect(),a(g))})});d.observe(b,{attributes:!1,childList:!0,characterData:!1,subtree:!1})}})}Cs(a){T(this).Cs(a)}};h=olympe.ui.F.mb.prototype;h.setPosition.K=olympe.j.J.C([]);h.ae.K=olympe.j.J.W;h.qa.K=olympe.j.J.D;h.ta.K=olympe.j.J.D;h.Gb.K=olympe.j.J.C([]);h.na.K=olympe.j.J.W;h.Cd.K=olympe.j.J.D;h.Ce.K=olympe.j.J.D;h.Wb.K=olympe.j.J.C([]);h.Ld.K=olympe.j.J.C([]);h.Oq.K=olympe.j.J.C([]);h.$g.K=olympe.j.J.C([]);
|
|
737
737
|
h.eZ.K=olympe.j.J.C([]);h.setScale.K=olympe.j.J.C([]);h.iZ.K=olympe.j.J.C([]);h.ah.K=olympe.j.J.C([]);h.getParent.K=new olympe.j.J(()=>olympe.ui.F.Element,[]);h.Ef.K=olympe.j.J.C([]);h.xh.K=olympe.j.J.W;h.Tj.K=olympe.j.J.C([]);h.Bg.K=olympe.j.J.C([]);olympe.ui.F.Dv=class{constructor(){}Jb(){}Bb(){}vb(){}rb(){}Od(){}lb(){}Xb(){}Ub(){}};olympe.ui.F.cb=class extends olympe.ui.F.mb{constructor(a,b){const c=new olympe.j.ga;super(olympe.ui.Na.C(olympe.N.F.cb,olympe.host.ab.jb.VK),c);this.paddingTop=olympe.j.Za(olympe.j.aa).update(olympe.j.aa.ZERO);olympe.j.Wa([this.paddingTop],g=>{T(this).td(g.valueOf())});this.paddingBottom=olympe.j.Za(olympe.j.aa).update(olympe.j.aa.ZERO);olympe.j.Wa([this.paddingBottom],g=>{T(this).sd(g.valueOf())});this.paddingLeft=olympe.j.Za(olympe.j.aa).update(olympe.j.aa.ZERO);olympe.j.Wa([this.paddingLeft],
|
|
738
738
|
g=>{T(this).Fc(g.valueOf())});this.paddingRight=olympe.j.Za(olympe.j.aa).update(olympe.j.aa.ZERO);olympe.j.Wa([this.paddingRight],g=>{T(this).Kc(g.valueOf())});this.O=olympe.j.Ab(b);this.D=olympe.j.Za(olympe.j.ia);M(this.D,olympe.j.ia.pb);this.C=olympe.j.Za(olympe.j.kb);M(this.C,olympe.j.ic(olympe.ui.ha.oo.Av));T(this).bi(this.C.wa());olympe.j.Wa([this.D,this.C],(g,k)=>{g.valueOf()?T(this).jv('pre-wrap'):k.valueOf()!==olympe.ui.ha.oo.Av?T(this).jv('nowrap'):T(this).jv('pre')});this.T=olympe.j.Wc(void 0===
|
|
739
739
|
a);this.R=olympe.j.Wc(void 0===a);b=olympe.ui.Na.D().ru(this.O);olympe.ui.F.cb.prototype.$d.call(this,b);const d=void 0!==a?a:b.na();let e=null;const f=olympe.j.yb().re(()=>{e=new olympe.j.ga;T(this).fp((g,k)=>{e.oe(g);e.Fe(k)})});olympe.j.Wa([this.T,this.R],(g,k)=>{g=g.valueOf();k=k.valueOf();T(this).Yd(g);T(this).Ed(k);g||k?(null===e&&f(),g?c.oe(e.qa().Sa(this.paddingLeft.wa()).Sa(this.paddingRight.wa())):c.oe(d.qa()),k?c.Fe(e.ta().Sa(this.paddingTop.wa()).Sa(this.paddingBottom.wa())):c.Fe(d.ta())):
|
|
740
|
-
(T(this).Rq(),e=null,c.oe(d.qa()),c.Fe(d.ta()))})}Jb(a){T(this).Jb(a);return this}Bb(a){T(this).Bb(a);return this}vb(a){T(this).vb(a);return this}rb(a){T(this).rb(a);return this}Od(a){T(this).Od(a);return this}lb(a){T(this).lb(olympe.j.
|
|
740
|
+
(T(this).Rq(),e=null,c.oe(d.qa()),c.Fe(d.ta()))})}Jb(a){T(this).Jb(a);return this}Bb(a){T(this).Bb(a);return this}vb(a){T(this).vb(a);return this}rb(a){T(this).rb(a);return this}Od(a){T(this).Od(a);return this}lb(a){T(this).lb(olympe.j.cg(a,b=>b.ei()));return this}Yn(a){olympe.j.Mg(a)?this.D.repeat(a):this.D.update(a);return this}bi(a){olympe.j.Mg(a)?this.C.repeat(a):this.C.update(a);return this}Ub(a){T(this).Ub(a);return this}Xb(a){T(this).Xb(a);return this}Yd(a){K(this.T,a);return this}Ed(a){K(this.R,
|
|
741
741
|
a);return this}Vj(a){T(this).Vj(a);return this}Fc(a){olympe.j.Mg(a)?this.paddingLeft.repeat(a):('number'===typeof a&&(a=olympe.j.Ba(a)),this.paddingLeft.update(a));return this}Kc(a){olympe.j.Mg(a)?this.paddingRight.repeat(a):('number'===typeof a&&(a=olympe.j.Ba(a)),this.paddingRight.update(a));return this}td(a){olympe.j.Mg(a)?this.paddingTop.repeat(a):('number'===typeof a&&(a=olympe.j.Ba(a)),this.paddingTop.update(a));return this}sd(a){olympe.j.Mg(a)?this.paddingBottom.repeat(a):('number'===typeof a&&
|
|
742
742
|
(a=olympe.j.Ba(a)),this.paddingBottom.update(a));return this}Ml(a){olympe.j.Wa([a],b=>{T(this).Ml(b.valueOf())});return this}Bg(a){K(this.O,a);return this}$d(a){a&&(super.$d(a),this.rb(a.WH()),this.Bb(a.Bi()),this.vb(a.Ai()),this.Od(a.yl()),this.sd(a.XH()),this.Fc(a.YH()),this.Kc(a.ZH()),this.td(a.$H()),this.lb(a.aI()),this.Ub(a.bI()),this.Xb(a.cI()))}};olympe.ui.F.cb.Aa=[olympe.ui.F.Dv];h=olympe.ui.F.cb.prototype;h.Jb.K=olympe.j.J.C([]);h.Bb.K=olympe.j.J.C([]);h.vb.K=olympe.j.J.C([]);h.rb.K=olympe.j.J.C([]);
|
|
743
|
-
h.Od.K=olympe.j.J.C([]);h.lb.K=olympe.j.J.C([]);h.Yn.K=olympe.j.J.C([]);h.Ub.K=olympe.j.J.C([]);h.Xb.K=olympe.j.J.C([]);h.Yd.K=olympe.j.J.C([]);h.Ed.K=olympe.j.J.C([]);h.Vj.K=olympe.j.J.C([]);h.Fc.K=olympe.j.J.C([0]);h.Kc.K=olympe.j.J.C([0]);h.td.K=olympe.j.J.C([0]);h.sd.K=olympe.j.J.C([0]);h.Ml.K=olympe.j.J.C([0]);h.Bg.K=olympe.j.J.C([]);function Kf(a,b,c){a.O().appendChild(T(b),c);b.Ef(a)}function Lf(a,b){a.O().$(b)}olympe.ui.F.ce=class extends olympe.ui.F.mb{constructor(a){super(olympe.ui.Na.C(olympe.N.F.ce,olympe.host.ab.jb.Ez),a)}O(){return this.
|
|
744
|
-
olympe.ui.F.wd=class extends olympe.ui.F.mb{constructor(a){super(olympe.ui.Na.C(olympe.N.F.wd,olympe.host.ab.jb.XK),a);this.W=null;this.ma=M(olympe.j.Za(olympe.j.ia),olympe.j.ia.pb);this.ca=M(olympe.j.Za(olympe.j.ia),olympe.j.ia.pb);this.da=M(olympe.j.Za(olympe.j.ia),olympe.j.ia.pb);this.gd=M(olympe.j.Za(olympe.j.aa),olympe.j.aa.ZERO);this.cf=M(olympe.j.Za(olympe.j.aa),olympe.j.aa.ZERO);olympe.j.Wa([this.ma,this.ca,this.da],()=>{Wc(()=>Mf(this),0)});this.Ii(()=>{Mf(this)})}Nd(a){this.
|
|
745
|
-
a.Ef(this)}du(){this.
|
|
743
|
+
h.Od.K=olympe.j.J.C([]);h.lb.K=olympe.j.J.C([]);h.Yn.K=olympe.j.J.C([]);h.Ub.K=olympe.j.J.C([]);h.Xb.K=olympe.j.J.C([]);h.Yd.K=olympe.j.J.C([]);h.Ed.K=olympe.j.J.C([]);h.Vj.K=olympe.j.J.C([]);h.Fc.K=olympe.j.J.C([0]);h.Kc.K=olympe.j.J.C([0]);h.td.K=olympe.j.J.C([0]);h.sd.K=olympe.j.J.C([0]);h.Ml.K=olympe.j.J.C([0]);h.Bg.K=olympe.j.J.C([]);function Kf(a,b,c){a.O().appendChild(T(b),c);b.Ef(a)}function Lf(a,b){a.O().$(b)}olympe.ui.F.ce=class extends olympe.ui.F.mb{constructor(a){super(olympe.ui.Na.C(olympe.N.F.ce,olympe.host.ab.jb.Ez),a)}O(){return this.te()}appendChild(){}removeChild(){}Lr(){this.O().Lr();return this}};function Mf(a){const b=olympe.j.Qa(a.ma),c=olympe.j.Qa(a.ca),d=olympe.j.Qa(a.da),e=olympe.ui.Na.W(a,'getScrollbarThicknessX'),f=olympe.ui.Na.W(a,'getScrollbarThicknessY');a.gd.update(b&&c?e:0);a.cf.update(b&&d?f:0)}function Nf(a,b){a.te().fB(b.qa());a.te().gB(b.ta())}
|
|
744
|
+
olympe.ui.F.wd=class extends olympe.ui.F.mb{constructor(a){super(olympe.ui.Na.C(olympe.N.F.wd,olympe.host.ab.jb.XK),a);this.W=null;this.ma=M(olympe.j.Za(olympe.j.ia),olympe.j.ia.pb);this.ca=M(olympe.j.Za(olympe.j.ia),olympe.j.ia.pb);this.da=M(olympe.j.Za(olympe.j.ia),olympe.j.ia.pb);this.gd=M(olympe.j.Za(olympe.j.aa),olympe.j.aa.ZERO);this.cf=M(olympe.j.Za(olympe.j.aa),olympe.j.aa.ZERO);olympe.j.Wa([this.ma,this.ca,this.da],()=>{Wc(()=>Mf(this),0)});this.Ii(()=>{Mf(this)})}Nd(a){this.te().Nd(T(a));
|
|
745
|
+
a.Ef(this)}du(){this.te().du()}Ds(a){this.te().Ds(a);olympe.j.Zb(a)?this.ca.repeat(a):this.ca.update(a)}ev(a){this.te().ev(a);olympe.j.Zb(a)?this.da.repeat(a):this.da.update(a)}Es(a){this.te().Es(a);olympe.j.Zb(a)?this.ma.repeat(a):this.ma.update(a)}Vx(a){this.te().Vx(a.lB())}T(){null===this.W&&Q(this,()=>{this.W=new olympe.j.ga(0,0);this.te().UA((a,b)=>{this.W.oe(a);this.W.Fe(b)})});return this.W}};olympe.ui.F.wd.prototype.T.K=olympe.j.J.W;olympe.ui.F.br=class{zw(){}na(){}AA(){}kA(){}};olympe.ui.F.br.prototype.zw.K=new olympe.j.J(()=>olympe.ui.F.mb,[]);olympe.ui.F.br.prototype.na.K=olympe.j.J.W;olympe.ui.F.br.prototype.AA.K=olympe.j.J.D;olympe.ui.F.br.prototype.kA.K=olympe.j.J.D;olympe.ui.F.GC=class{constructor(a,b,c){this.C=new olympe.j.Be(olympe.ui.F.mb);this.ca=olympe.j.la(0);this.$=olympe.j.la(Number.MAX_SAFE_INTEGER);this.T=olympe.j.la(a);const d=this.C.Hh(this.C.Qc().ya(1));this.D=olympe.j.Wc(void 0!==b?b:!1);this.IA=olympe.j.Wc(!1);this.Jw=olympe.j.ub(olympe.ui.F.ea.ed);this.Iw=olympe.j.la();this.O=olympe.j.$a(this.IA,()=>this.Iw,()=>olympe.j.Ba(0),olympe.j.aa);this.animation=olympe.j.ub(olympe.ui.F.zm);this.Zz=olympe.j.la(0);this.R=!1;this.W=olympe.j.$a(this.D,()=>
|
|
746
746
|
new olympe.j.ga(olympe.j.kj(d.qa().Sa(d.Cd()),0),a),()=>new olympe.j.ga(a,olympe.j.kj(d.ta().Sa(d.Ce()),0)),olympe.j.ga);olympe.ui.F.GC.prototype.da.call(this,olympe.ui.Na.D().uA(c))}zw(a,b,c,d,e,f,g){const k=e.gf(d),l=olympe.j.Ba(0),m=olympe.j.Za(olympe.ui.F.mb);olympe.j.Wa([k],w=>{0<w.valueOf()?(w=this.C.Hh(w.valueOf()-1),olympe.j.Wa([w],x=>{m.update(x)})):(w=olympe.j.yb(),olympe.j.$m(w)&&dc(w),m.clear())});const n=m.wa(),p=olympe.j.$a(this.D,()=>new olympe.j.ga(lc(n.qa().Sa(n.Cd()),l),l),()=>new olympe.j.ga(l,
|
|
747
|
-
lc(n.ta().Sa(n.Ce()),l)),olympe.j.ga),r=olympe.j.$a(this.D,()=>new olympe.j.ga(p.qa().Sa(this.O),p.ta()),()=>new olympe.j.ga(p.qa(),p.ta().Sa(this.O)),olympe.j.ga),t=new olympe.ui.F.
|
|
748
|
-
w.valueOf();0<x&&!this.R?Wc(()=>{w.valueOf()>=e.aj()-1&&(this.R=!0);u.ng(1);v.Rj(u,a)},x):(u.ng(1),v.Rj(u,a))}));this.C.set(d,u,k);olympe.j.yb().Ve(()=>{f
|
|
747
|
+
lc(n.ta().Sa(n.Ce()),l)),olympe.j.ga),r=olympe.j.$a(this.D,()=>new olympe.j.ga(p.qa().Sa(this.O),p.ta()),()=>new olympe.j.ga(p.qa(),p.ta().Sa(this.O)),olympe.j.ga),t=new olympe.ui.F.ye(olympe.j.$a(this.D,()=>new olympe.j.ga(this.O,this.T),()=>new olympe.j.ga(this.T,this.O),olympe.j.ga));t.$d(this.Jw);t.rd(k.Se(0));t.setPosition(p);a.appendChild(t,'divider-'+d);const u=b(c,d,k,e,g);u.setPosition(r);a.appendChild(u,d);const v=F(this.animation);v&&(u.ng(0),olympe.j.Wa([k],w=>{const x=F(this.Zz).valueOf()*
|
|
748
|
+
w.valueOf();0<x&&!this.R?Wc(()=>{w.valueOf()>=e.aj()-1&&(this.R=!0);u.ng(1);v.Rj(u,a)},x):(u.ng(1),v.Rj(u,a))}));this.C.set(d,u,k);olympe.j.yb().Ve(()=>{f.$f()||(this.C.remove(d),0===this.C.aj()&&(this.R=!1))});return u}na(){return this.W}AA(){return this.ca}kA(){return this.$}bB(a){K(this.Jw,a)}aB(a){K(this.Iw,a)}Wu(a){K(this.IA,a)}uI(a){K(this.animation,a)}vI(a){K(this.Zz,a)}da(a){this.bB(a.qN());this.aB(a.pN());this.Wu(a.IA());this.uI(a.Tr());this.vI(a.Zz)}};olympe.ui.F.GC.Aa=[olympe.ui.F.br];
|
|
749
749
|
h=olympe.ui.F.GC.prototype;h.zw.K=new olympe.j.J(()=>olympe.ui.F.mb,[]);h.na.K=olympe.j.J.W;h.AA.K=olympe.j.J.D;h.kA.K=olympe.j.J.D;h.bB.K=olympe.j.J.C([]);h.aB.K=olympe.j.J.C([]);h.Wu.K=olympe.j.J.C([]);h.uI.K=olympe.j.J.C([]);h.vI.K=olympe.j.J.C([]);olympe.ui.F.cC=class extends olympe.ui.F.wd{constructor(a,b,c,d,e,f,g,k){super();this.data=olympe.j.ub(olympe.j.Ug);this.We=olympe.j.ub(olympe.ui.F.cC.D);this.R=olympe.j.ub(olympe.ui.F.br);this.content=new olympe.ui.F.Xe(d.na());this.Ka=olympe.j.ub(String);this.Eb=olympe.j.Ab(olympe.ui.F.ea.nf.C.aD);this.ob=olympe.j.Ab(olympe.ui.F.ea.nf.C.Oy);this.xb=olympe.j.Ab(olympe.ui.F.ea.nf.C.aw);this.Oa=olympe.j.Wc(f);this.Ha=olympe.j.Wc(g);this.C=new olympe.j.Map;this.O=new olympe.j.Map;this.D=olympe.j.ub(olympe.j.ga);
|
|
750
750
|
this.xI(c);this.Nd(this.content);this.jP(d);this.wI(b);this.dP(void 0===e?void 0!==a?olympe.ui.ha.zp.Uf:olympe.ui.ha.zp.qF:e);K(this.D,a);super.Gb(jc(this.Ka,l=>{switch(l.valueOf()){case olympe.ui.ha.zp.MP:return new olympe.j.ga(this.R.na().qa(),this.D.ta());case olympe.ui.ha.zp.LP:return new olympe.j.ga(this.D.qa(),this.R.na().ta());case olympe.ui.ha.zp.qF:return this.R.na();case olympe.ui.ha.zp.hU:return new olympe.j.ga(this.R.na().qa().vn(this.D.qa()),this.D.ta());case olympe.ui.ha.zp.gU:return new olympe.j.ga(this.D.qa(),
|
|
751
751
|
this.R.na().ta().vn(this.D.ta()));case olympe.ui.ha.zp.iU:return new olympe.j.ga(this.R.na().qa().vn(this.D.qa()),this.R.na().ta().vn(this.D.ta()));default:return a}},null,olympe.j.ga));olympe.ui.F.cC.prototype.$d.call(this,olympe.ui.Na.D().mA(k));olympe.j.Wa([this.data],l=>{this.C.mi(l.Ee())});olympe.j.di([this.data,this.We,this.R,this.Ka],(l,m,n)=>{l.forEach((p,r,t)=>{const u=olympe.j.Ab(),v=n.zw(this.content,m,p,r,t,this,u),w=olympe.j.Qa(this.Oa);void 0!==w&&w.valueOf()&&v.Vc(x=>{void 0===this.C.Fj(r)?
|
|
752
752
|
(x.$y().valueOf()&&olympe.j.Qa(this.Ha).valueOf()||(this.C.clear(),this.O.clear()),this.C.set(r,p),this.O.set(r,r)):!x.$y().valueOf()&&1<this.C.aj()?(this.C.clear(),this.O.clear(),this.C.set(r,p),this.O.set(r,r)):x.$y().valueOf()?(this.O.remove(r),this.C.remove(r)):(this.C.clear(),this.O.clear())});K(u,olympe.j.$a(this.C.has(r),()=>this.Eb,()=>olympe.j.$a(t.gf(r).ox(2).Se(0),()=>this.ob,()=>this.xb,olympe.j.kb),olympe.j.kb))})})}wI(a){K(this.data,a)}xI(a){K(this.We,a)}jP(a){K(this.R,a)}dP(a){K(this.Ka,
|
|
753
753
|
a)}Ml(a){K(this.Oa,a);return this}WY(a){K(this.Ha,a);return this}pX(){return this.O}RR(){return this.O.Vd()}qX(){return this.C}SR(){return this.C.Vd()}bP(a){K(this.ob,a)}lP(a){K(this.xb,a)}pP(a){K(this.Eb,a)}Gb(a){K(this.D,a);return this}DY(){F(this.Ha).valueOf()&&this.data.yi((a,b)=>{this.C.set(b,a);this.O.set(b,b)});return this}HV(){this.C.clear();this.O.clear();return this}$d(a){super.$d(a);this.bP(a.D());this.lP(a.O());this.pP(a.R())}};h=olympe.ui.F.cC.prototype;h.wI.K=olympe.j.J.C([]);
|
|
754
754
|
h.xI.K=olympe.j.J.C([]);h.jP.K=olympe.j.J.C([]);h.dP.K=olympe.j.J.C([]);h.Ml.K=olympe.j.J.C([]);h.WY.K=olympe.j.J.C([]);h.pX.K=new olympe.j.J(()=>olympe.j.Map,[]);h.RR.K=new olympe.j.J(()=>String,[]);h.qX.K=new olympe.j.J(()=>olympe.j.Map,[]);h.SR.K=new olympe.j.J(()=>Object,[]);h.bP.K=olympe.j.J.C([]);h.lP.K=olympe.j.J.C([]);h.pP.K=olympe.j.J.C([]);h.Gb.K=olympe.j.J.C([]);h.DY.K=olympe.j.J.C([]);h.HV.K=olympe.j.J.C([]);olympe.ui.F.jt=class extends olympe.ui.F.wd{constructor(a,b,c,d,e=0,f=!1){super();this.D=olympe.j.yb();this.data=b;this.Pb=c;this.We=d;this.ob=f||!1;this.R=olympe.j.createNode(olympe.j.aa);this.Ka=olympe.j.createNode(olympe.j.aa);this.scrollWidth=a.qa();this.Yc=a.ta();this.O=olympe.j.createNode(Number);this.Oa=olympe.j.createNode(Number);olympe.j.Wa([this.Ka,this.scrollWidth],(l,m)=>{m=m.valueOf();const n=Math.max(1,Math.floor(m/l));Ub(this.Oa,(m-l*n)/(n+1));Ub(this.O,n)},'ForEachLimited itemLineSize and scrollWidth');
|
|
755
|
-
olympe.j.
|
|
756
|
-
m)))))},'ForEachLimited count process flow');const g=olympe.j.Xa([this.R,this.data.Qc(),this.O,e],(l,m,n,p)=>olympe.j.Ba(Math.max(0,l*Math.ceil(m.valueOf()/n)-p)),olympe.j.aa);this.content=new olympe.ui.F.Xe(new olympe.j.ga(a.qa(),g));this.C=[];this.selected=new olympe.j.Map(c);olympe.j.Wa([this.Ha],l=>{if(!this.D
|
|
757
|
-
x===r?t:0;y<n;y++){const A=x*n+y;if(A>=v)break;const H=new olympe.j.ee(`ForEachLimitedTile[${x}]`),G=H.run(()=>new Of(this.We,this.Pb,this.oq.bind(this)));this.C[A]=G;this.content.appendChild(G.R,G.ja());H.run(()=>olympe.j.$a(this.ob,()=>G.R.Vc(this.xb.bind(this,G))))}}else{for(v=p;v>m;v--)w=this.C[v-1],x=w.ja(),this.content.removeChild(x),w.destroy();this.C.length=m}})}});const k=this.T().ta();olympe.j.Wa([this.data,this.data.Qc()],l=>{if(!this.D
|
|
758
|
-
k,this.Ha],(p,r,t,u,v)=>{if(!this.D
|
|
759
|
-
G*x+sa;if(!n&&A&&Nb<m)continue;const J=fa*v+Nb,V=this.C[Nb];Pf(V,()=>{olympe.j.Wa([l.Hh(J)],Ia=>{V.O.update(olympe.j.Ba(Ra));V.W.update(olympe.j.Ba(sa*r+(sa+1)*y));var ta=V,Sa=l.rl(J),Va=J;Sa!==ta.C&&(ta.C=Sa,K(ta.T,Ia),K(ta.$,Va),K(ta.selected,ta.oq(Sa)))},`ForEachLimited Tile update object in rank ${J} flow`)})}}}}m=v;n=!1}}})}});olympe.j.Wa([this.Oa,this.O],(l,m)=>{if(!this.D
|
|
755
|
+
olympe.j.cg(c,l=>{const m=this.data.Hh(0);olympe.j.Zb(m)&&ic(m,l);l=this.We(m,0,olympe.j.ia.pb).na();ec(this.R,l.ta().Sa(e).Tb);ec(this.Ka,l.qa().Tb)});this.Ha=olympe.j.Za(olympe.j.aa);this.Eb=olympe.j.Za(olympe.j.aa);olympe.j.Wa([this.Yc,this.R,this.O,this.data.Qc()],(l,m,n,p)=>{this.D.$f()||(l=l.valueOf(),p=p.valueOf(),l=Math.min(Math.ceil(l/m)+2,Math.ceil(p/n))*m,bc(this.Ha.C),this.Eb.update(olympe.j.Ba(l)),m=n*Math.ceil(l/m),m=isNaN(m)?Infinity:m,this.Ha.update(olympe.j.Ba(Math.max(0,Math.min(p,
|
|
756
|
+
m)))))},'ForEachLimited count process flow');const g=olympe.j.Xa([this.R,this.data.Qc(),this.O,e],(l,m,n,p)=>olympe.j.Ba(Math.max(0,l*Math.ceil(m.valueOf()/n)-p)),olympe.j.aa);this.content=new olympe.ui.F.Xe(new olympe.j.ga(a.qa(),g));this.C=[];this.selected=new olympe.j.Map(c);olympe.j.Wa([this.Ha],l=>{if(!this.D.$f()){var m=l.valueOf(),n=this.O.pg,p=this.C.length,r=Math.floor(p/n),t=p%n,u=olympe.j.Qa(this.data);this.D.run(()=>{var v=u?u.aj():0;if(p<m){var w=Math.ceil(m/n);for(var x=r;x<w;x++)for(let y=
|
|
757
|
+
x===r?t:0;y<n;y++){const A=x*n+y;if(A>=v)break;const H=new olympe.j.ee(`ForEachLimitedTile[${x}]`),G=H.run(()=>new Of(this.We,this.Pb,this.oq.bind(this)));this.C[A]=G;this.content.appendChild(G.R,G.ja());H.run(()=>olympe.j.$a(this.ob,()=>G.R.Vc(this.xb.bind(this,G))))}}else{for(v=p;v>m;v--)w=this.C[v-1],x=w.ja(),this.content.removeChild(x),w.destroy();this.C.length=m}})}});const k=this.T().ta();olympe.j.Wa([this.data,this.data.Qc()],l=>{if(!this.D.$f()){var m=0,n=!0;olympe.j.Wa([this.R,this.Ka,this.Eb,
|
|
758
|
+
k,this.Ha],(p,r,t,u,v)=>{if(!this.D.$f()){var w=olympe.j.Qa(g,-1).valueOf();if(u.valueOf()>w&&0<w)K(k,olympe.j.aa.ZERO);else{v=v.valueOf();if(!(0>=t.valueOf())){w=Math.floor(u.valueOf()/t.valueOf());u=Math.floor(u.valueOf()%t.valueOf()/p);var x=this.O.pg,y=this.Oa.pg,A=v!==m;for(let G=0,R=Math.ceil(this.C.length/x);G<R;G++){var H=olympe.j.Qa(this.C[G*x].O.wa()).valueOf();const fa=w+(G<u?1:0),Ra=fa*t.valueOf()+G*p;if(A&&(G+1)*x>m||n||H!==Ra){H=G===Math.floor(v/x)?v%x:x;for(let sa=0;sa<H;sa++){const Nb=
|
|
759
|
+
G*x+sa;if(!n&&A&&Nb<m)continue;const J=fa*v+Nb,V=this.C[Nb];Pf(V,()=>{olympe.j.Wa([l.Hh(J)],Ia=>{V.O.update(olympe.j.Ba(Ra));V.W.update(olympe.j.Ba(sa*r+(sa+1)*y));var ta=V,Sa=l.rl(J),Va=J;Sa!==ta.C&&(ta.C=Sa,K(ta.T,Ia),K(ta.$,Va),K(ta.selected,ta.oq(Sa)))},`ForEachLimited Tile update object in rank ${J} flow`)})}}}}m=v;n=!1}}})}});olympe.j.Wa([this.Oa,this.O],(l,m)=>{if(!this.D.$f()){var n=this.Ka.pg,p=this.R.pg;for(let r=0,t=this.C.length;r<t;r++){const u=r%m,v=this.C[r];v.W.update(olympe.j.Ba(n*
|
|
760
760
|
u+l*(u+1)));v.O.update(olympe.j.Ba(Math.floor(r/m)*p))}}});this.data.forEach((l,m)=>olympe.j.yb().onDestroy(()=>{this.selected.remove(m)}));this.Gb(a);this.Nd(this.content)}ld(){return this.selected}kc(){return this.content.na()}oq(a){return void 0!==this.selected.Fj(a)}vf(a){'string'===typeof a&&(a=[a]);if(a instanceof Array||a instanceof olympe.j.Kk){this.selected.clear();const b=this.C;for(let c=0,d=b.length;c<d;c++)K(b[c].selected,!1);a.forEach(c=>{for(let d=0,e=b.length;d<e;d++)if(c===b[d].C){this.xb(b[d]);
|
|
761
761
|
break}})}return this}xb(a){if(olympe.j.Qa(this.ob).valueOf()){var b=olympe.j.Qa(!1).valueOf(),c=a.C,d=this.selected;if(void 0!==d.Fj(c))K(a.selected,!1),d.remove(c);else{var e=olympe.j.Qa(d.Sm());if(!b&&void 0!==e){d.remove(e);b=this.C;for(let f=0,g=b.length;f<g;f++)if(b[f].C===e){K(b[f].selected,!1);break}}olympe.j.ls([this.data.get(c)],f=>{d.set(c,f);K(a.selected,!0)})}}}};function Pf(a,b){a.ca.xo();a.ca.run(b)}
|
|
762
762
|
class Of{constructor(a,b,c){this.id=olympe.oa.IM('ForEachLimited_row');this.D=olympe.j.yb();this.T=olympe.j.ub();olympe.j.Wa([b],d=>{ic(this.T,d)});this.C='';this.oq=c;this.$=olympe.j.ub(Number);this.ca=new olympe.j.ee('Rank listener context',this.D);this.selected=olympe.j.Wc(olympe.j.ia.pb);this.R=a(this.T,this.$,this.selected);this.R.Tj(!0);this.W=olympe.j.Za(olympe.j.aa).update(olympe.j.aa.ZERO);this.O=olympe.j.Za(olympe.j.aa).update(olympe.j.aa.ZERO);this.R.setPosition(new olympe.j.ga(this.W.wa(),
|
|
763
|
-
this.O.wa()))}ja(){return this.id}destroy(){this.D&&(this.D.destroy(),this.D=null)}}olympe.ui.F.jt.prototype.ld.K=new olympe.j.J(()=>olympe.j.Map,[]);olympe.ui.F.jt.prototype.kc.K=olympe.j.J.W;olympe.ui.F.jt.prototype.vf.K=olympe.j.J.C([]);olympe.ui.F.jc=class extends olympe.ui.F.ce{constructor(a,b,c){super();this.Pb=olympe.j.Ab(c);this.R=olympe.j.la(0);this.cf=olympe.j.qd();this.ld=olympe.j.qd();this.xk=olympe.j.qd();this.vf=olympe.j.qd();this.xb=olympe.j.qd();this.Eb=olympe.j.qd();this.Yc=olympe.j.qd();this.Cl=olympe.j.qd();this.lg=olympe.j.qd();this.Ko=olympe.j.la();this
|
|
763
|
+
this.O.wa()))}ja(){return this.id}destroy(){this.D&&(this.D.destroy(),this.D=null)}}olympe.ui.F.jt.prototype.ld.K=new olympe.j.J(()=>olympe.j.Map,[]);olympe.ui.F.jt.prototype.kc.K=olympe.j.J.W;olympe.ui.F.jt.prototype.vf.K=olympe.j.J.C([]);olympe.ui.F.jc=class extends olympe.ui.F.ce{constructor(a,b,c){super();this.Pb=olympe.j.Ab(c);this.R=olympe.j.la(0);this.cf=olympe.j.qd();this.ld=olympe.j.qd();this.xk=olympe.j.qd();this.vf=olympe.j.qd();this.xb=olympe.j.qd();this.Eb=olympe.j.qd();this.Yc=olympe.j.qd();this.Cl=olympe.j.qd();this.lg=olympe.j.qd();this.Ko=olympe.j.la();this.ag=olympe.j.la();this.gd=olympe.j.la();this.kc=olympe.j.qd();this.W=olympe.j.qd();this.Nf=olympe.j.Wc(!1);this.Ne=olympe.j.Wc(!1);this.T=olympe.j.la(0);this.ob=
|
|
764
764
|
olympe.j.la(0);this.Oa=olympe.j.la(0);this.da=olympe.j.Za(olympe.j.ia).update(olympe.j.ia.pb);this.Ha=olympe.j.Ab('');c=this.Cd().ya(this.R.hb(2));var d=this.Ce().ya(this.R.hb(2));this.C=new olympe.ui.F.cb(new olympe.j.ga(20,d));this.label=new olympe.ui.F.cb(new olympe.j.ga(0,d));this.label.Yd(!0);this.label.ib('pointer-events','inherit');this.ma=olympe.j.la();this.ca=olympe.j.la();this.D=olympe.j.Za(olympe.j.ia);this.D.update(olympe.j.ia.pb);this.Ka=olympe.j.Za(olympe.j.ia).update(olympe.j.ia.pb);
|
|
765
765
|
const e=olympe.ui.X.MouseEvent,f=this.kh(p=>{p.Gm().Rb(e.xy)&&this.D.update(olympe.j.ia.C)}),g=this.Wg(p=>{p.Gm().Rb(e.xy)&&this.D.update(olympe.j.ia.pb)}),k=this.Hi(()=>{this.D.update(olympe.j.ia.pb);this.Ka.update(olympe.j.ia.pb)}),l=this.gj(p=>{this.Ka.update(olympe.j.ia.C);p.AO(e.xy).valueOf()&&this.D.update(olympe.j.ia.C)}),m=this.Vc(()=>{this.D.update(olympe.j.ia.pb)});olympe.j.yb().Ve(()=>{this.yk(f);this.Ng(g);this.Qj(k);this.zk(l);this.Pj(m)});const n=olympe.ui.Na.D().Gm(this.Pb);d=(p,r,
|
|
766
766
|
t,u)=>olympe.j.Xa([this.da.wa(),this.D.wa(),this.Ka.wa()],(v,w,x)=>v.valueOf()?t:w.valueOf()?r:x.valueOf()&&void 0!==u?u:p,olympe.j.Color);void 0!==b&&this.Jb(b);this.label.lb(d(this.W,this.Eb,this.xb,this.W));this.C.Jb(this.Ha);this.C.lb(d(this.W,this.Eb,this.xb,this.W));this.C.vb('FontAwesome');this.C.Ub(olympe.ui.ha.Db.Sb);this.C.rd(this.Ha.Fi());b=olympe.j.$a(this.Ha.Fi(),()=>this.label.Cd(),()=>this.label.Cd().Sa(this.C.Cd()).Sa(this.Oa),olympe.j.aa);b=c.ya(b).Ua(2);this.label.setPosition(new olympe.j.ga(this.R.Sa(b),
|
|
767
|
-
this.R));this.C.setPosition(new olympe.j.ga(this.label.ae().qa().Sa(this.label.Cd()).Sa(this.Oa),this.R));Kf(this,this.label,'label');Kf(this,this.C,'icon');olympe.ui.F.jc.prototype.$d.call(this,n);olympe.ui.F.ce.prototype.ad.call(this,((p,r,t,u)=>olympe.j.Xa([this.da.wa(),this.D.wa(),this.Ka.wa()],(v,w,x)=>v.valueOf()?t:w.valueOf()?r:x.valueOf()&&void 0!==u?u:p,olympe.j.aa))(this.R,this.Ko,this.gd,this
|
|
767
|
+
this.R));this.C.setPosition(new olympe.j.ga(this.label.ae().qa().Sa(this.label.Cd()).Sa(this.Oa),this.R));Kf(this,this.label,'label');Kf(this,this.C,'icon');olympe.ui.F.jc.prototype.$d.call(this,n);olympe.ui.F.ce.prototype.ad.call(this,((p,r,t,u)=>olympe.j.Xa([this.da.wa(),this.D.wa(),this.Ka.wa()],(v,w,x)=>v.valueOf()?t:w.valueOf()?r:x.valueOf()&&void 0!==u?u:p,olympe.j.aa))(this.R,this.Ko,this.gd,this.ag));olympe.ui.F.mb.prototype.nd.call(this,d(this.kc,this.Cl,this.Yc,this.lg));olympe.ui.F.mb.prototype.Ma.call(this,
|
|
768
768
|
d(this.cf,this.xk,this.ld,this.vf));K(this.ca,void 0!==a?a.ta():n.na().ta());olympe.ui.F.mb.prototype.Gb.call(this,new olympe.j.ga(this.ma,this.ca));olympe.j.$a(this.Nf,()=>{this.label.Fc(this.T);olympe.j.Qa(this.Ha.Fi()).valueOf()?(this.label.Kc(this.T),K(this.ma,this.label.Cd())):(this.C.Kc(this.T),K(this.ma,this.label.Cd().Sa(this.C.Cd()).Sa(this.Oa).Sa(this.T)))},()=>{this.label.Fc(olympe.j.aa.ZERO);this.label.Kc(olympe.j.aa.ZERO);this.C.Kc(olympe.j.aa.ZERO);K(this.ma,void 0!==a?a.qa():n.na().qa())});
|
|
769
769
|
olympe.j.$a(this.Ne,()=>{this.label.td(this.ob);this.label.sd(this.ob);K(this.ca,this.label.na().ta())},()=>{this.label.td(olympe.j.aa.ZERO);this.label.sd(olympe.j.aa.ZERO);K(this.ca,void 0!==a?a.ta():n.na().ta())})}TY(a){this.label.Jb(a);return this}RY(a){K(this.Ha,a);return this}Jb(a){this.label.Jb(a);return this}bi(a){this.label.bi(a);return this}VR(a){this.label.Yn(a);return this}Ub(a){this.label.Ub(a);return this}Xb(a){this.label.Xb(a);return this}rb(a){this.label.rb(a);return this}Od(a){this.label.Od(a);
|
|
770
|
-
return this}lb(a){return this.Ex(a)}Bb(a){this.label.Bb(a);return this}vb(a){this.label.vb(a);return this}Ma(a){K(this.cf,a);return this}uC(a){K(this.ld,a)}Zj(a){K(this.xk,a);return this}UR(a){K(this.vf,a);return this}vC(a){K(this.xb,a)}wC(a){K(this.Eb,a)}yI(a){K(this.Yc,a)}zI(a){K(this.Cl,a)}PY(a){K(this.lg,a);return this}aZ(a){K(this.Ko,a);return this}QY(a){K(this
|
|
770
|
+
return this}lb(a){return this.Ex(a)}Bb(a){this.label.Bb(a);return this}vb(a){this.label.vb(a);return this}Ma(a){K(this.cf,a);return this}uC(a){K(this.ld,a)}Zj(a){K(this.xk,a);return this}UR(a){K(this.vf,a);return this}vC(a){K(this.xb,a)}wC(a){K(this.Eb,a)}yI(a){K(this.Yc,a)}zI(a){K(this.Cl,a)}PY(a){K(this.lg,a);return this}aZ(a){K(this.Ko,a);return this}QY(a){K(this.ag,a);return this}MY(a){K(this.gd,a);return this}Yd(a,b=0){a='boolean'===typeof a?olympe.j.hc(a):a;b='number'===typeof b?olympe.j.Ba(b):
|
|
771
771
|
b;K(this.Nf,a);K(this.T,b);return this}Ed(a,b=0){a='boolean'===typeof a?olympe.j.hc(a):a;b='number'===typeof b?olympe.j.Ba(b):b;K(this.Ne,a);K(this.ob,b);return this}SY(a=0){K(this.Oa,a);return this}Ld(a,b){this.ad(a);this.nd(b);return this}ad(a){K(this.R,a)}nd(a){K(this.kc,a)}Ex(a){K(this.W,a);return this}TR(a){return this.Ex(a)}Cf(a){olympe.j.Mg(a)?this.da.repeat(a):this.da.update(a);return this}Gb(a){K(this.Nf,!1);K(this.ma,a.qa());K(this.ca,a.ta());return this}Vc(a,b,c){return super.Vc(d=>{if(!olympe.j.Qa(this.da).valueOf())return a(d)},
|
|
772
772
|
b,c)}$d(a){a&&(super.$d(a),this.Yd(a.KH(),a.OM()),this.uC(a.kN()),this.Zj(a.SN()),this.vC(a.mN()),this.wC(a.UN()),this.yI(a.lN()),this.zI(a.TN()),this.Ub(a.NH()),this.Xb(a.OH()),this.Ex(a.MH()),this.rb(a.LH()),this.vb(a.Ai()),this.Bb(a.Bi()))}Bg(a){K(this.Pb,a);return this}};olympe.ui.F.jc.Aa=[olympe.ui.F.Dv];h=olympe.ui.F.jc.prototype;h.TY.K=olympe.j.J.C([]);h.RY.K=olympe.j.J.C([]);h.Jb.K=olympe.j.J.C([]);h.bi.K=olympe.j.J.C([]);h.VR.K=olympe.j.J.C([]);h.Ub.K=olympe.j.J.C([]);h.Xb.K=olympe.j.J.C([]);
|
|
773
773
|
h.rb.K=olympe.j.J.C([]);h.Od.K=olympe.j.J.C([]);h.lb.K=olympe.j.J.C([]);h.Bb.K=olympe.j.J.C([]);h.vb.K=olympe.j.J.C([]);h.Ma.K=olympe.j.J.C([]);h.uC.K=olympe.j.J.C([]);h.Zj.K=olympe.j.J.C([]);h.UR.K=olympe.j.J.C([]);h.vC.K=olympe.j.J.C([]);h.wC.K=olympe.j.J.C([]);h.yI.K=olympe.j.J.C([]);h.zI.K=olympe.j.J.C([]);h.PY.K=olympe.j.J.C([]);h.aZ.K=olympe.j.J.C([]);h.QY.K=olympe.j.J.C([]);h.MY.K=olympe.j.J.C([]);h.Yd.K=olympe.j.J.C([]);h.Ed.K=olympe.j.J.C([]);h.SY.K=olympe.j.J.C([]);h.ad.K=olympe.j.J.C([]);
|
|
774
|
-
h.nd.K=olympe.j.J.C([]);h.Ex.K=olympe.j.J.C([]);h.TR.K=olympe.j.J.C([]);h.Cf.K=olympe.j.J.C([]);h.Gb.K=olympe.j.J.C([]);h.Bg.K=olympe.j.J.C([]);olympe.ui.F.
|
|
774
|
+
h.nd.K=olympe.j.J.C([]);h.Ex.K=olympe.j.J.C([]);h.TR.K=olympe.j.J.C([]);h.Cf.K=olympe.j.J.C([]);h.Gb.K=olympe.j.J.C([]);h.Bg.K=olympe.j.J.C([]);olympe.ui.F.ye=class extends olympe.ui.F.mb{constructor(a){super(olympe.ui.Na.C(olympe.N.F.ce,olympe.host.ab.jb.Ez),a)}};olympe.ui.F.em=class extends olympe.ui.F.mb{constructor(a){super(olympe.ui.Na.C(olympe.N.F.ce,olympe.host.ab.jb.Ez));this.Gb(new olympe.j.ga(a,a));this.Wb(this.na().qa().Ua(2))}};function Qf(a,b,c,d,e){d=void 0===d?olympe.j.aa.ZERO:olympe.j.la(d);e=void 0===e?olympe.j.aa.ZERO:olympe.j.la(e);olympe.j.$a(a.Ka.wa(),()=>{a.W.repeat(olympe.j.aa.max(a.T))},()=>{olympe.j.Mg(b)?a.W.repeat(b):a.W.update(void 0!==b?b:olympe.j.aa.ZERO)});c=void 0!==c?olympe.j.Mg(c)?c:olympe.j.Ba(c):olympe.j.Xa([a.R.Qc(),a.Eb],(f,g)=>olympe.j.Ba(f-g),olympe.j.aa);a.ob(a.W.wa(),c,d,e);Kf(a,a.content,'Layout content')}
|
|
775
775
|
olympe.ui.F.Rs=class extends olympe.ui.F.ce{constructor(a,b,c,d,e,f=!1,g=!1){super();this.R=new olympe.j.Hz;this.Pb=g;this.kc=f;this.Ka=olympe.j.Za(olympe.j.ia,'Abstract Layout childWatchedDimensionFS').update(void 0!==a?olympe.j.ia.pb:olympe.j.ia.C);this.W=M(olympe.j.Za(olympe.j.aa,'abstract Layout childWatchedDimension'),olympe.j.aa.ZERO);this.T=new olympe.j.Map(olympe.j.aa);this.T.set('DefaultSize',olympe.j.aa.ZERO);this.Eb=void 0===c?olympe.j.aa.ZERO:olympe.j.la(c);this.content=new olympe.ui.F.Xe;
|
|
776
776
|
this.content.Lr();Qf(this,a,b,d,e)}lc(){return this.content.lc()||super.lc()}appendChild(a,b,...c){const d=0<c.length?c[0]:olympe.j.aa.ONE,e=1<c.length?c[1]:olympe.j.aa.ONE;var f=2<c.length?c[2]:olympe.ui.ha.Db.Tf,g=3<c.length?c[3]:void 0;if('string'!==typeof b)throw Error('A child should be registered using a string id');void 0!==this.T.Fj(b)&&this.removeChild(b);c=olympe.j.$a(a.es(),()=>olympe.j.aa.ZERO,()=>d.Sa(this.Eb),olympe.j.aa);g=Oc(this.R,b,c,g);switch(f){case olympe.ui.ha.Db.Sb:f=this.content.na().qa().ya(a.na().qa()).Ua(2);
|
|
777
777
|
break;case olympe.ui.ha.Db.wi:f=this.content.na().qa().ya(a.na().qa());break;case olympe.ui.ha.rc.Sc:f=this.content.na().ta().ya(a.na().ta()).Ua(2);break;case olympe.ui.ha.rc.zh:f=this.content.na().ta().ya(a.na().ta());break;default:f=0}c=this.Pb?this.R.Qc().ya(g).ya(c):g;g=olympe.j.$a(a.es(),()=>olympe.j.aa.ZERO,()=>e,olympe.j.aa);this.T.set(b,g);f=this.kc?new olympe.j.ga(f,c):new olympe.j.ga(c,f);this.content.appendChild(a,b,f);Lf(this.content,k=>{Mc(this.R,k);this.T.remove(k)});return this}removeChild(a){Mc(this.R,
|
|
@@ -784,7 +784,7 @@ var c=Oc(this.Ha,b,olympe.j.la(1)),d=a.na().qa().Sa(this.D);const e=a.na().ta().
|
|
|
784
784
|
a);return this}aP(a){K(this.Oa,a)}};h=olympe.ui.F.Hf.prototype;h.appendChild.K=olympe.j.J.C([]);h.removeChild.K=olympe.j.J.C([]);h.mg.K=olympe.j.J.C([]);h.Qc.K=olympe.j.J.D;h.Ed.K=olympe.j.J.C([]);h.aP.K=olympe.j.J.C([]);olympe.ui.F.IJ=class{constructor(a,b,c,d,e,f,g,k,l,m,n,p){this.sb=olympe.j.la(0);this.Oa=olympe.j.la(Number.MAX_SAFE_INTEGER);new olympe.j.Hz;this.R=olympe.j.la(0);this.Ne=olympe.j.Wc(!1);this.height=void 0===b?olympe.j.la(0):olympe.j.la(b);this.width=void 0===a?olympe.j.la(0):olympe.j.la(a);this.Ka=olympe.j.Wc(void 0!==p?p:!0);this.ca=void 0===d?olympe.j.la(0):olympe.j.la(d);this.da=void 0===e?olympe.j.la(0):olympe.j.la(e);this.za=void 0===f?olympe.j.la(0):olympe.j.la(f);this.ob=void 0===k?olympe.j.la(0):
|
|
785
785
|
olympe.j.la(k);this.Pa=void 0===l?olympe.j.la(0):olympe.j.la(l);this.xb=void 0===m?olympe.j.la(0):olympe.j.la(m);this.ma=this.width.ya(this.da).ya(this.za);this.W=olympe.j.la(c).Sa(this.ca);this.T=olympe.j.la(g).Sa(this.ob);this.D=this.ma.Ua(this.W).floor();this.$=this.R.Ua(this.D).ceil();this.C=olympe.j.la();this.O=olympe.j.la();void 0===b&&K(this.Ne,!0);olympe.j.$a(this.Ne,()=>{K(this.height,this.T)});void 0===n||n?olympe.j.$a(this.$.Mj(1),()=>{K(this.C,this.D)},()=>{K(this.C,this.R)}):K(this.C,
|
|
786
786
|
this.D);olympe.j.$a(this.Ka,()=>{var r=this.W.hb(this.ma.Ua(this.W).ya(this.C));const t=this.C.Sa(1);r=r.Ua(t);K(this.O,r.Sa(this.ca))},()=>{K(this.O,this.ca)});this.Ha=new olympe.j.ga(this.width.Sa(this.da).Sa(this.za),this.height.Sa(this.Pa).Sa(this.xb))}zw(a,b,c,d,e,f,g){f=e.gf(d);const k=b(c,d,f,e,g);olympe.j.Qa(e.Qc()).Sa(1).Se(olympe.j.Qa(this.R)).valueOf()||K(this.R,e.Qc());b=k.na().qa().Sa(this.O);const l=k.na().ta().Sa(this.O);b=olympe.j.Gi(f.ox(this.D).hb(b).Sa(this.O),olympe.j.la(300),
|
|
787
|
-
olympe.j.aa.Dh.xp);f=olympe.j.Gi(f.Ua(this.D).ya(.5).round().hb(l),olympe.j.la(300),olympe.j.aa.Dh.xp);olympe.j.$a(this.$.Mj(1).and(this.Ne),()=>{K(this.T,this.$.hb(l))},()=>{K(this.T,k.na().ta())});k.setPosition(new olympe.j.ga(b.Sa(this.da),f.Sa(this.Pa)));a.appendChild(k,d);return k}na(){return this.Ha}AA(){return this.sb}kA(){return this.Oa}};olympe.ui.F.IJ.Aa=[olympe.ui.F.br];olympe.ui.F.IJ.prototype.na.K=olympe.j.J.W;olympe.ui.F.Ue=class extends olympe.ui.F.mb{constructor(a,b){super(olympe.ui.Na.C(olympe.N.F.Ue,olympe.host.ab.jb.eD),b)}C(){return this.
|
|
787
|
+
olympe.j.aa.Dh.xp);f=olympe.j.Gi(f.Ua(this.D).ya(.5).round().hb(l),olympe.j.la(300),olympe.j.aa.Dh.xp);olympe.j.$a(this.$.Mj(1).and(this.Ne),()=>{K(this.T,this.$.hb(l))},()=>{K(this.T,k.na().ta())});k.setPosition(new olympe.j.ga(b.Sa(this.da),f.Sa(this.Pa)));a.appendChild(k,d);return k}na(){return this.Ha}AA(){return this.sb}kA(){return this.Oa}};olympe.ui.F.IJ.Aa=[olympe.ui.F.br];olympe.ui.F.IJ.prototype.na.K=olympe.j.J.W;olympe.ui.F.Ue=class extends olympe.ui.F.mb{constructor(a,b){super(olympe.ui.Na.C(olympe.N.F.Ue,olympe.host.ab.jb.eD),b)}C(){return this.te()}};olympe.ui.F.Ue.prototype.C.K=new olympe.j.J(()=>olympe.N.F.Ue,[]);function Rf(a,b){a.C[olympe.oa.pk()]=b}
|
|
788
788
|
olympe.ui.F.Ie=class extends olympe.ui.F.mb{constructor(a){super(olympe.ui.Na.C(olympe.N.F.Ie,olympe.host.ab.jb.UK));this.D=olympe.j.ia.C;this.C=Object.create(null);T(this).SA(b=>{const c=[];let d,e,f;d=0;for(e=b.length;d<e;d++)f=b[d],c.push(new olympe.ui.F.SG(f.content,f.name,f.mimeType,f.size));for(let g in this.C)this.C[g](c)});this.Gb(void 0!==a?a:new olympe.j.ga(400,200));this.Vc(()=>{const b=olympe.j.Qa(this.D);b&&b.valueOf()&&T(this).Js()})}Zt(a){T(this).Zt(a);return this}Qu(a){T(this).Qu(a);
|
|
789
789
|
return this}yx(a){this.D=a;return this}Cf(a){T(this).Cf(a);return this}zs(a){T(this).zs(a);return this}eu(){T(this).eu();return this}Js(){T(this).Js();return this}};h=olympe.ui.F.Ie.prototype;h.Zt.K=olympe.j.J.C([]);h.Qu.K=olympe.j.J.C([]);h.yx.K=olympe.j.J.C([]);h.Cf.K=olympe.j.J.C([]);h.zs.K=olympe.j.J.C([]);h.eu.K=olympe.j.J.C([]);h.Js.K=olympe.j.J.C([]);olympe.ui.F.SG=class{constructor(a,b,c,d){this.content=a;this.name=b;this.mimeType=c;this.size=d}le(){return olympe.j.ic(`file:${this.name}`)}Pe(){return this.content}Uw(a,b){void 0===a&&void 0===b||olympe.gb.Cb('olympe.ui.std.FileUploadItem.getContentAsBinary').warn('"onSuccess" and "onFailure" callbacks are deprecated in favor of the returned promise');null==a||a(this.content);return Promise.resolve(this.content)}jA(a,b){void 0===a&&void 0===b||olympe.gb.Cb('olympe.ui.std.FileUploadItem.getContentAsString').warn('"onSuccess" and "onFailure" callbacks are deprecated in favor of the returned promise');
|
|
790
790
|
b=fb(this.content);null==a||a(b);return Promise.resolve(b)}Vr(a,b){void 0===a&&void 0===b||olympe.gb.Cb('olympe.ui.std.FileUploadItem.getContentUrl').warn('"onSuccess" and "onFailure" callbacks are deprecated in favor of the returned promise');b=`data:${this.mimeType};base64,${olympe.oa.Dj().C(this.content)}`;null==a||a(b);return Promise.resolve(b)}rE(a,b){olympe.j.Wa([a],c=>{this.name=c.valueOf()});b(!0)}bb(){return olympe.j.ic(this.name)}Zy(){return olympe.j.ic(this.name)}bx(){return olympe.j.ic(this.mimeType)}Qc(){return this.size}};
|
|
@@ -792,15 +792,15 @@ olympe.ui.F.SG.Aa=[olympe.j.File];olympe.ui.F.Qf=class{constructor(){}filter(){}
|
|
|
792
792
|
g,k)=>{k=k.gf(g);const l=e(this.R,f,g,k);l.Vc(()=>{I(this.D,f);I(this.O,g)});this.content.appendChild(l,g,new olympe.j.ga(0,k.hb(this.C)))})})}AI(a){K(this.data,a)}gP(a){K(this.C,a)}BI(a){K(this.We,a)}WR(){return this.O}XR(){return this.D}};h=olympe.ui.F.Be.prototype;h.AI.K=olympe.j.J.C([]);h.gP.K=olympe.j.J.C([]);h.BI.K=olympe.j.J.C([]);h.WR.K=new olympe.j.J(()=>String,[]);h.XR.K=new olympe.j.J(()=>Object,[]);olympe.ui.F.zm=class{constructor(){}run(){}Rj(){}C(){}};function Sf(a){const b=a.ma+String((new Date).getTime()+Math.random());olympe.j.$a(a.Oa,()=>{null!==a.D&&a.D.ah(olympe.ui.Na.O(b+'_overlay').Sa(1));a.C.ah(olympe.ui.Na.O(b).Sa(1));a.O=F(a.T);a.O.appendChild(a.C,a.ma);const c=()=>{for(const e in a.xb)if(Object.prototype.hasOwnProperty.call(a.xb,e))a.xb[e]();a.tE();null!==a.D&&a.D.setPosition(new olympe.j.ga(0,0))},d=F(a.animation);null!==d?F(a.Ka).valueOf()?d.Rj(a.content,a.O,c):d.Rj(a.C,a.O,c):c();null!==a.D&&(a.O.mj(),a.O.appendChild(a.D,a.ma+'_overlay'),
|
|
793
793
|
null!==d&&F(a.za).valueOf()&&d.Rj(a.D,a.O,c))},()=>{if(null!==a.O){const c=a.O;a.O=null;const d=()=>{olympe.ui.Na.R(b+'_overlay');olympe.ui.Na.R(b);c.removeChild(a.ma);null!==a.D&&c.removeChild(a.ma+'_overlay');a.tE();null!==a.D&&a.D.setPosition(new olympe.j.ga(0,0));for(const f in a.$)if(Object.prototype.hasOwnProperty.call(a.$,f))a.$[f]()},e=olympe.j.Qa(a.animation);if(null!==e&&void 0!==e){const f=null!==a.D&&olympe.j.Qa(a.za)===olympe.j.ia.C;F(a.Ka).valueOf()?e.C(a.content,c,f?void 0:d):e.C(a.C,
|
|
794
794
|
c,f?void 0:d);f&&e.C(a.D,a.O,d)}else d()}})}function Tf(a,b,c){c=void 0!==c?c:olympe.oa.bf();a.$[c]=b}function Uf(a,b,c){c=void 0!==c?c:olympe.oa.bf();0===a.Ha.size&&a.D.Vc(d=>{for(const e of a.Ha.values())e(d)},'onOverlayClick');a.Ha.set(c,b)}function Vf(a){a.Ha.has('closableByClickingOut')||Uf(a,()=>{a.Sk(!1)},'closableByClickingOut')}
|
|
795
|
-
olympe.ui.F.
|
|
796
|
-
olympe.j.Wc(!1);this.Hg=void 0!==b?b:!0;this.za=this.D=this.ob=null;this.Ha=new Map;this.Hg&&(this.ob=olympe.j.qd(),this.D=new olympe.ui.F.
|
|
795
|
+
olympe.ui.F.hg=class{constructor(a,b,c,d){this.cf=olympe.ui.F.hg.R;olympe.ui.F.hg.R++;this.ma=(d?d:'floatingElement')+'_'+this.cf;this.animation=olympe.j.ub(olympe.ui.F.zm,null);this.Ka=olympe.j.Wc(!1);this.C=new olympe.ui.F.Xe(a);this.content=olympe.j.ub(olympe.ui.F.mb);this.T=null===c||void 0===c?olympe.j.ub(olympe.ui.F.pf,olympe.ui.Na.hf()):c instanceof olympe.j.Proxy?c:olympe.j.ub(olympe.ui.F.ce,c);this.O=null;this.Oa=olympe.j.Wc(!1);this.$={};this.xb={};this.W=null;this.Nf=olympe.j.Wc(!1);this.Ne=
|
|
796
|
+
olympe.j.Wc(!1);this.Hg=void 0!==b?b:!0;this.za=this.D=this.ob=null;this.Ha=new Map;this.Hg&&(this.ob=olympe.j.qd(),this.D=new olympe.ui.F.ye(this.T.na()),this.za=olympe.j.Wc(!1),this.D.Ma(this.ob));this.C.Ef(this.T);this.C.Tj(!0);Sf(this);this.C.appendChild(this.content,'content');this.ZA()}ZA(){olympe.j.$a(this.Nf,()=>{olympe.j.$a(this.Ne,()=>{this.C.Gb(this.content.na())},()=>{olympe.j.Wa([this.C.na()],a=>a.oe(this.content.na().qa()))})},()=>{olympe.j.$a(this.Ne,()=>{olympe.j.Wa([this.C.na()],
|
|
797
797
|
a=>a.Fe(this.content.na().ta()))})})}Nd(a){K(this.content,a);return this}getParent(){return this.T}Sk(a){K(this.Oa,a)}isVisible(){return this.Oa}EI(a){K(this.animation,a)}Tr(){return this.animation}CI(a){K(this.Ka,a)}DI(a){K(this.za,a)}xC(a){K(this.ob,a)}Yd(a){K(this.Nf,a);return this}Ed(a){K(this.Ne,a);return this}setPosition(a){this.C.setPosition(a);return this}ae(){return this.C.ae()}Gb(a){this.C.Gb(a);return this}na(){return this.C.na()}setScale(a){this.C.setScale(a);return this}Ma(a){this.C.Ma(a);
|
|
798
|
-
return this}Wb(a){this.C.Wb(a);return this}Ld(a,b){this.C.Ld(a,b);return this}ng(a){this.C.ng(a);return this}Yg(a,b,c,d,e){this.C.Yg(a,b,c,d,e);return this}pV(){olympe.j.Wa([this.T],a=>{this.Ew(a,olympe.ui.F.
|
|
798
|
+
return this}Wb(a){this.C.Wb(a);return this}Ld(a,b){this.C.Ld(a,b);return this}ng(a){this.C.ng(a);return this}Yg(a,b,c,d,e){this.C.Yg(a,b,c,d,e);return this}pV(){olympe.j.Wa([this.T],a=>{this.Ew(a,olympe.ui.F.hg.D.Sc,olympe.ui.F.hg.O.Sc)});return this}Ew(a,b,c){const d=olympe.ui.F.hg.O,e=olympe.ui.F.hg.D,f=a.xh().qa(),g=a.xh().ta();var k=olympe.ui.Na.hf().na().ta(),l=olympe.ui.Na.hf().na().qa();switch(b){case e.mJ:b=f.ya(this.C.na().qa());break;case e.ez:b=f;break;case e.wK:b=f.Sa(a.na().qa().ya(this.C.na().qa()));
|
|
799
799
|
break;case e.xK:b=f.Sa(a.na().qa());break;default:b=f.Sa(a.na().qa().ya(this.C.na().qa()).Ua(2))}switch(c){case d.kD:a=g.ya(this.C.na().ta());break;case d.tL:a=g;break;case d.EF:a=g.Sa(a.na().ta().ya(this.C.na().ta()));break;case d.wy:a=g.Sa(a.na().ta());break;default:a=g.Sa(a.na().ta().ya(this.C.na().ta()).Ua(2))}c=olympe.j.Qa(this.T).xh();b=b.ya(c.qa());a=a.ya(c.ta());const m=(n,p,r,t)=>{n+p+t>r&&(n=r-p-t);return n<t?t:n};l=olympe.j.Xa([b,this.na().qa(),l],(n,p,r)=>olympe.j.Ba(m(n.valueOf(),p.valueOf(),
|
|
800
|
-
r.valueOf(),10)),olympe.j.aa);k=olympe.j.Xa([a,this.na().ta(),k],(n,p,r)=>olympe.j.Ba(m(n.valueOf(),p.valueOf(),r.valueOf(),10)),olympe.j.aa);k=new olympe.j.ga(l,k);this.C.setPosition(k);this.W=k}qV(a,b,c,d){const e=olympe.ui.F.
|
|
801
|
-
a;break;default:c=a.ya(this.C.na().ta().Ua(2))}c=new olympe.j.ga(b,c);d&&(c=c.Sa(d));c=c.ya(F(this.T).xh());this.C.setPosition(c);this.W=c;return this}tE(){null!==this.W&&this.C.setPosition(this.W)}xY(){this.W=null;return this}rh(a){a&&(this.C.$d(a),this.EI(a.Tr()),this.Hg&&(this.xC(a.VH()),this.DI(a.UH())),this.CI(a.TH()),this.Yd(a.cz()),this.Ed(a.bz()))}};olympe.ui.F.
|
|
802
|
-
olympe.ui.F.
|
|
803
|
-
h.setScale.K=olympe.j.J.C([]);h.Ma.K=olympe.j.J.C([]);h.Wb.K=olympe.j.J.C([]);h.Ld.K=olympe.j.J.C([]);h.ng.K=olympe.j.J.C([]);h.Yg.K=olympe.j.J.C([]);h.pV.K=olympe.j.J.C([]);h.Ew.K=olympe.j.J.C([]);h.qV.K=olympe.j.J.C([]);h.tE.K=olympe.j.J.C([]);h.xY.K=olympe.j.J.C([]);h.rh.K=new olympe.j.J(()=>{},[0]);olympe.ui.F.RQ=class extends olympe.ui.F.
|
|
800
|
+
r.valueOf(),10)),olympe.j.aa);k=olympe.j.Xa([a,this.na().ta(),k],(n,p,r)=>olympe.j.Ba(m(n.valueOf(),p.valueOf(),r.valueOf(),10)),olympe.j.aa);k=new olympe.j.ga(l,k);this.C.setPosition(k);this.W=k}qV(a,b,c,d){const e=olympe.ui.F.hg.O,f=olympe.ui.F.hg.D,g=a.wh().qa();a=a.wh().ta();switch(b){case f.mJ:case f.ez:b=g.ya(this.C.na().qa());break;case f.wK:case f.xK:b=g.Sa(10);break;default:b=g.ya(this.C.na().qa().Ua(2))}switch(c){case e.kD:case e.tL:c=a.ya(this.C.na().ta()).ya(10);break;case e.EF:case e.wy:c=
|
|
801
|
+
a;break;default:c=a.ya(this.C.na().ta().Ua(2))}c=new olympe.j.ga(b,c);d&&(c=c.Sa(d));c=c.ya(F(this.T).xh());this.C.setPosition(c);this.W=c;return this}tE(){null!==this.W&&this.C.setPosition(this.W)}xY(){this.W=null;return this}rh(a){a&&(this.C.$d(a),this.EI(a.Tr()),this.Hg&&(this.xC(a.VH()),this.DI(a.UH())),this.CI(a.TH()),this.Yd(a.cz()),this.Ed(a.bz()))}};olympe.ui.F.hg.R=0;olympe.ui.F.hg.O={kD:'top_out',tL:'top_in',Sc:'middle',EF:'bottom_in',wy:'bottom_out'};
|
|
802
|
+
olympe.ui.F.hg.D={mJ:'left_out',ez:'top_in',Sc:'middle',wK:'bottom_in',xK:'bottom_out'};h=olympe.ui.F.hg.prototype;h.ZA.K=olympe.j.J.C([]);h.Nd.K=olympe.j.J.C([]);h.getParent.K=new olympe.j.J(()=>olympe.ui.F.mb,[]);h.Sk.K=olympe.j.J.C([]);h.isVisible.K=olympe.j.J.T;h.EI.K=olympe.j.J.C([]);h.CI.K=olympe.j.J.C([]);h.DI.K=olympe.j.J.C([]);h.xC.K=olympe.j.J.C([]);h.Yd.K=olympe.j.J.C([]);h.Ed.K=olympe.j.J.C([]);h.setPosition.K=olympe.j.J.C([]);h.ae.K=olympe.j.J.W;h.Gb.K=olympe.j.J.C([]);h.na.K=olympe.j.J.W;
|
|
803
|
+
h.setScale.K=olympe.j.J.C([]);h.Ma.K=olympe.j.J.C([]);h.Wb.K=olympe.j.J.C([]);h.Ld.K=olympe.j.J.C([]);h.ng.K=olympe.j.J.C([]);h.Yg.K=olympe.j.J.C([]);h.pV.K=olympe.j.J.C([]);h.Ew.K=olympe.j.J.C([]);h.qV.K=olympe.j.J.C([]);h.tE.K=olympe.j.J.C([]);h.xY.K=olympe.j.J.C([]);h.rh.K=new olympe.j.J(()=>{},[0]);olympe.ui.F.RQ=class extends olympe.ui.F.hg{constructor(a){super(void 0,!1,void 0,'floating panel');this.Ma(O());this.Yd(!0);this.Ed(!0);this.Ld(olympe.j.aa.ONE,Ac());a&&this.Nd(a)}};olympe.ui.F.z2=class extends olympe.ui.F.hg{constructor(a,b,c,d){super(b,!1,c,'tooltip');const e=olympe.ui.Na.D().ZD(d);this.rh(e);this.label=olympe.j.$a(this.isVisible(),()=>{const f=new olympe.ui.F.cb(void 0,e.IN());f.Jb(a);f.Yd(!0);return f},void 0,olympe.ui.F.cb);this.Nd(this.label)}ru(){return this.label}rh(a){super.rh(a)}};olympe.ui.F.ew=class extends olympe.ui.F.hg{constructor(a,b,c){void 0===b&&(b=!0);super(a,b,c,'popup');this.lg=new Map;this.vf=new Map;this.W=new olympe.j.ga(this.T.na().qa().ya(this.na().qa()).Ua(2),this.T.na().ta().ya(this.na().ta()).Ua(2));this.setPosition(this.W);a=olympe.ui.Na.D().ex();olympe.ui.F.ew.prototype.rh.call(this,a)}Pa(){Tf(this,()=>{for(const a of this.lg.values())a();delete this.$.onConfirm},'onConfirm');this.Sk(!1)}cancel(){Tf(this,()=>{for(const a of this.vf.values())a();delete this.$.onCancel},
|
|
804
804
|
'onCancel');this.Sk(!1)}rh(a){super.rh(a)}};olympe.ui.F.qy=class extends olympe.ui.F.ew{constructor(a,b,c,d,e,f,g){super(d,e,f);this.Pb=g;this.R=olympe.j.la(0);this.sb=olympe.j.la(0);this.da=olympe.j.Ab(void 0!==c?c:'OK');this.qc=olympe.j.la();this.Eb=olympe.j.la();this.title=olympe.j.Ab(void 0!==b?b:'');this.message=olympe.j.Ab(void 0!==a?a:'');b=olympe.ui.Na.D().Sr(g);olympe.ui.F.qy.prototype.rh.call(this,b);c=new olympe.ui.F.cb(new olympe.j.ga(this.na().qa().ya(this.R.hb(2)),1),b.wu());a=new olympe.ui.F.xd(this.na().qa(),this.sb,this.R,
|
|
805
805
|
this.R);c.Ed(!0);c.Jb(this.title);c.lb(N());c.Ub(olympe.ui.ha.Db.Sb);a.appendChild(c,'title',olympe.ui.ha.Db.Sb);c=new olympe.ui.F.cb(new olympe.j.ga(this.na().qa().ya(this.R.hb(2)),1),b.su());c.Ed(!0);c.Yn(!0);c.Jb(this.message);c.lb(N());c.Ub(olympe.ui.ha.Db.Sb);a.appendChild(c,'text',olympe.ui.ha.Db.Sb);this.ca=new olympe.ui.F.jc(void 0,this.da,b.vA());b=new olympe.ui.F.xd(this.na().qa().ya(this.R.hb(2)));a.appendChild(b,'button',olympe.ui.ha.Db.Sb);b.appendChild(this.ca,'okBtn',olympe.ui.ha.Db.Sb);
|
|
806
806
|
this.ca.Vc(this.Pa.bind(this));olympe.j.$a(this.isVisible(),()=>{olympe.ui.Na.hf().Ak(k=>{k.sA().Rb(13)&&this.Pa()})});this.Nd(a)}ci(a){K(this.title,a);return this}YR(a){K(this.message,a);return this}YY(a){K(this.da,a);return this}ZY(a){K(this.qc,a);return this}XY(a){K(this.Eb,a);return this}FI(a){K(this.sb,a)}Df(a){K(this.R,a);return this}rh(){const a=olympe.ui.Na.D().Sr(this.Pb);super.rh(a);this.Df(a.tu());this.FI(a.vu())}};olympe.ui.F.qy.T=500;olympe.ui.F.qy.C=150;h=olympe.ui.F.qy.prototype;
|
|
@@ -812,75 +812,75 @@ this.JI(a.xN());this.Df(a.tu());this.RI(a.vu());this.HI(a.uN());this.OI(a.CN());
|
|
|
812
812
|
h.LI.K=olympe.j.J.C([]);h.MI.K=olympe.j.J.C([]);h.fP.K=olympe.j.J.C([]);h.JI.K=olympe.j.J.C([]);h.II.K=olympe.j.J.C([]);h.SI.K=olympe.j.J.C([]);h.GI.K=olympe.j.J.C([]);h.QI.K=olympe.j.J.C([]);olympe.ui.F.bG=class extends olympe.ui.F.ew{constructor(a,b,c,d){d=olympe.ui.Na.D().Sr(d);super(a,b,c);this.R=olympe.j.la(20);this.ca=olympe.j.la(20);this.Eb=olympe.j.Ab('CANCEL');this.Pb=olympe.j.la(20);this.gd=this.na().qa().Ua(2).ya(this.Pb);this.Yc=olympe.j.la(40);this.qc=olympe.j.Ab('OK');this.ld=this.na().qa().Ua(2).ya(this.Pb);this.kc=olympe.j.la(40);olympe.j.qd(0,0,0);olympe.j.qd(51,51,51);this.title=olympe.j.Ab('');olympe.j.la(20);this.message=olympe.j.Ab('');olympe.j.la(16);a=new olympe.ui.F.xd(this.na().qa(),
|
|
813
813
|
this.ca,this.R,this.R);b=new olympe.ui.F.cb(new olympe.j.ga(this.na().qa().ya(this.R.hb(2)),1),d.wu());b.Ed(!0);b.Jb(this.title);b.lb(N());b.Ub(olympe.ui.ha.Db.Sb);a.appendChild(b,'title',olympe.ui.ha.Db.Sb);b=new olympe.ui.F.cb(new olympe.j.ga(this.na().qa().ya(this.R.hb(2)),1),d.su());b.Ed(!0);b.Yn(!0);b.Jb(this.message);b.lb(N());b.Ub(olympe.ui.ha.Db.Tf);a.appendChild(b,'text',olympe.ui.ha.Db.Sb);this.da=new olympe.ui.F.jc(void 0,this.qc,d.vA());this.sb=new olympe.ui.F.jc(void 0,this.Eb,d.vA());
|
|
814
814
|
b=new olympe.ui.F.Zd(this.da.na().ta(),this.ca,this.ca,this.ca);a.appendChild(b,'button',olympe.ui.ha.Db.Sb);b.appendChild(this.sb,'cancelBtn');b.appendChild(this.da,'okBtn');this.da.Vc(this.Pa.bind(this));this.sb.Vc(this.cancel.bind(this));this.Nd(a);olympe.ui.F.bG.prototype.rh.call(this,d)}ci(a){K(this.title,a);return this}LY(a){K(this.message,a);return this}cS(a){K(this.qc,a);return this}bS(a){K(this.Eb,a);return this}KY(a){K(this.ld,a);return this}JY(a){K(this.kc,a);return this}FY(a){K(this.gd,
|
|
815
|
-
a);return this}EY(a){K(this.Yc,a);return this}TI(a){K(this.ca,a)}Df(a){K(this.R,a);return this}rh(a){super.rh(a);this.Df(a.tu());this.TI(a.vu())}};h=olympe.ui.F.bG.prototype;h.ci.K=olympe.j.J.C([]);h.LY.K=olympe.j.J.C([]);h.cS.K=olympe.j.J.C([]);h.bS.K=olympe.j.J.C([]);h.KY.K=olympe.j.J.C([]);h.JY.K=olympe.j.J.C([]);h.FY.K=olympe.j.J.C([]);h.EY.K=olympe.j.J.C([]);h.TI.K=olympe.j.J.C([]);h.Df.K=olympe.j.J.C([]);olympe.ui.F.fi=class extends olympe.ui.F.
|
|
815
|
+
a);return this}EY(a){K(this.Yc,a);return this}TI(a){K(this.ca,a)}Df(a){K(this.R,a);return this}rh(a){super.rh(a);this.Df(a.tu());this.TI(a.vu())}};h=olympe.ui.F.bG.prototype;h.ci.K=olympe.j.J.C([]);h.LY.K=olympe.j.J.C([]);h.cS.K=olympe.j.J.C([]);h.bS.K=olympe.j.J.C([]);h.KY.K=olympe.j.J.C([]);h.JY.K=olympe.j.J.C([]);h.FY.K=olympe.j.J.C([]);h.EY.K=olympe.j.J.C([]);h.TI.K=olympe.j.J.C([]);h.Df.K=olympe.j.J.C([]);olympe.ui.F.fi=class extends olympe.ui.F.hg{constructor(a,b,c){super(void 0,a,null,'bubble');this.Pb=olympe.j.ub(String);this.sb=olympe.j.ub(olympe.j.Color);this.Eb=olympe.j.ub(olympe.j.Color);this.qc=olympe.j.la(1);this.Pa=olympe.j.la(1);this.ca=olympe.j.la(1);this.da=olympe.j.la(1);this.R=null;void 0!==b&&this.Nd(b);a&&Uf(this,()=>{this.Sk(!1);return!1},'hide');Tf(this,()=>{null!==this.R&&(this.R.Tb.destroy(),this.R=null)},'disposeSyncProxy');olympe.ui.F.fi.prototype.rh.call(this,olympe.ui.Na.D().iA(c));
|
|
816
816
|
this.C.Yg(this.Pb,olympe.ui.ha.Ah.Qs,olympe.ui.ha.df.Sb)}ZA(){}ZI(a){K(this.qc,a)}YI(a){K(this.Eb,a)}XI(a){K(this.sb,a)}WI(a){K(this.Pa,a)}UI(a){K(this.ca,a)}VI(a){K(this.da,a)}jZ(a,b,c,d=0,e=!0){const f=this.T;this.R&&this.R.Tb.destroy();this.R=olympe.j.di([f.na().qa(),f.na().ta(),this.content.na().qa(),this.content.na().ta(),a.qa(),a.ta(),this.Pa,this.ca,this.da,b,c,d,this.qc,this.Eb.ei(),this.sb.ei(),this.Nf,this.Ne,this.isVisible()],(g,k,l,m,n,p,r,t,u,v,w,x,y,A,H,G,R,fa)=>{if(fa.valueOf()&&!this.C.getParent().Tb.lc()){g=
|
|
817
817
|
g.valueOf();k=k.valueOf();l=Math.round(l.valueOf()+2*y);m=Math.round(m.valueOf()+2*y);n=Math.round(n.valueOf());p=Math.round(p.valueOf());v=v?v.valueOf():olympe.ui.F.fi.C.zh;G=G.valueOf();R=R.valueOf();0===v%2?(fa=v,k=Math.max(0,Math.min(k-m,void 0===w?p-m/2:w)),v===olympe.ui.F.fi.C.wi?(v=n,w=y+t,v>g-l-t&&(fa=olympe.ui.F.fi.C.Tf,v=n-t-l+x,w=y)):(v=n-t-l,w=y,0>v&&n+t+l<g&&(fa=olympe.ui.F.fi.C.wi,v=n+x,w=y+t)),x=p-k,x<r+u?(x=r+u,k=p-x):x>m-t-u&&(x=m-t-u,k=p-x),n=[l+t,m,v,k,w,y,fa,n-v,x]):(fa=v,g=Math.max(0,
|
|
818
818
|
Math.min(g-l,void 0===w?n-l/2:w)),v===olympe.ui.F.fi.C.gh?(v=p-t-m,w=y,0>v&&(fa=olympe.ui.F.fi.C.zh,v=p+x,w=y+t)):(v=p,w=y+t,v>k-m-t&&(fa=olympe.ui.F.fi.C.gh,v=p-t-m+x,w=y)),x=n-g,x<r+u?(x=r+u,g=n-x):x>l-t-u&&(x=l-t-u,g=n-x),n=[l,m+t,g,v,y,w,fa,x,p-v]);var [Ra,sa,Nb,J,V,Ia,ta,Sa,Va]=n;this.C.Gb(new olympe.j.ga(Ra,sa));G&&this.Gb(new olympe.j.ga(Ra,this.na().ta()));R&&this.Gb(new olympe.j.ga(this.na().qa(),sa));this.setPosition(new olympe.j.ga(Nb,J));this.content.setPosition(new olympe.j.ga(V,Ia));
|
|
819
819
|
r=r.valueOf();t=t.valueOf();y=y.valueOf();G=y/2;switch(ta){case olympe.ui.F.fi.C.gh:var ja=G;l-=G;R=G;n=m-G;ja='M'+ja+','+R+' L'+l+','+R+' L'+l+','+n+' L'+(Sa+r)+','+n+' L'+Sa+','+(t+m-G)+' L'+(Sa-r)+','+n+' L'+ja+','+n+' Z';break;case olympe.ui.F.fi.C.wi:n=t+G;l=t+l-G;R=G;m-=G;ja='M'+n+','+R+' L'+l+','+R+' L'+l+','+m+' L'+n+','+m+' L'+n+','+(Va+r)+' L'+G+','+Va+' L'+n+','+(Va-r)+' Z';break;case olympe.ui.F.fi.C.zh:ja=G;l-=G;n=t+G;m=t+m-G;ja='M'+ja+','+n+' L'+(Sa-r)+','+n+' L'+Sa+','+G+' L'+(Sa+r)+
|
|
820
820
|
','+n+' L'+l+','+n+' L'+l+','+m+' L'+ja+','+m+' Z';break;case olympe.ui.F.fi.C.Tf:ja=G,n=l-G,R=G,m-=G,ja='M'+ja+','+R+' L'+n+','+R+' L'+n+','+(Va-r)+' L'+(t+l-G)+','+Va+' L'+n+','+(Va+r)+' L'+n+','+m+' L'+ja+','+m+' Z'}I(this.Pb,'data:image/svg+xml,'+encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" >'+` <path d="${ja}" fill="${H.valueOf()}" stroke="${A.valueOf()}" stroke-width="${y}"/>`+'</svg>'))}});this.Sk(e);return this}rh(a){this.XI(a.PM());this.YI(a.QM());this.ZI(a.RM());this.WI(a.NM());
|
|
821
|
-
this.UI(a.JM());this.VI(a.MM())}};olympe.ui.F.fi.C={gh:1,wi:2,zh:3,Tf:4};olympe.ui.F.fi.T={Qz:'vertical',fC:'horizontal'};h=olympe.ui.F.fi.prototype;h.ZA.K=olympe.j.J.C([]);h.ZI.K=olympe.j.J.C([]);h.YI.K=olympe.j.J.C([]);h.XI.K=olympe.j.J.C([]);h.WI.K=olympe.j.J.C([]);h.UI.K=olympe.j.J.C([]);h.VI.K=olympe.j.J.C([]);h.jZ.K=olympe.j.J.C([]);olympe.ui.F.He=class extends olympe.ui.F.ce{constructor(a){super(a);this.C=olympe.j.Qa(olympe.ui.Na.D().Tw());this.T=Object.create(null);this.D=olympe.j.Wc(!1);this.W=olympe.j.la(0);this.da=olympe.j.la(0);this.ma=this.na().ta().ya(this.W.hb(2));this.R=new olympe.ui.F.
|
|
821
|
+
this.UI(a.JM());this.VI(a.MM())}};olympe.ui.F.fi.C={gh:1,wi:2,zh:3,Tf:4};olympe.ui.F.fi.T={Qz:'vertical',fC:'horizontal'};h=olympe.ui.F.fi.prototype;h.ZA.K=olympe.j.J.C([]);h.ZI.K=olympe.j.J.C([]);h.YI.K=olympe.j.J.C([]);h.XI.K=olympe.j.J.C([]);h.WI.K=olympe.j.J.C([]);h.UI.K=olympe.j.J.C([]);h.VI.K=olympe.j.J.C([]);h.jZ.K=olympe.j.J.C([]);olympe.ui.F.He=class extends olympe.ui.F.ce{constructor(a){super(a);this.C=olympe.j.Qa(olympe.ui.Na.D().Tw());this.T=Object.create(null);this.D=olympe.j.Wc(!1);this.W=olympe.j.la(0);this.da=olympe.j.la(0);this.ma=this.na().ta().ya(this.W.hb(2));this.R=new olympe.ui.F.ye(new olympe.j.ga(this.ma,this.ma));this.disabled=olympe.j.Za(olympe.j.ia).update(olympe.j.ia.pb);this.R.setPosition(new olympe.j.ga(this.da,this.W));Kf(this,this.R,'switchBlock');this.ca=new olympe.ui.F.ye(this.na());this.ca.ah(-1);
|
|
822
822
|
Kf(this,this.ca,'animOverlay');void 0===a&&this.Gb(this.C.oA().na());let b=null;olympe.j.$a(this.disabled.wa().Re(),()=>{b=this.Vc(()=>{this.$I();setTimeout(()=>{for(const e in this.T)this.T[e](F(this.D).valueOf())},F(this.C.hA()).valueOf())})},()=>{null!==b&&(this.Pj(b),b=null)});this.$g(olympe.j.$a(this.D,()=>this.C.Kg().Yr(),()=>this.C.tf().Yr(),olympe.j.ga),olympe.j.$a(this.D,()=>this.C.Kg().Zr(),()=>this.C.tf().Zr(),olympe.j.aa),olympe.j.$a(this.D,()=>this.C.Kg().$r(),()=>this.C.tf().$r(),olympe.j.aa),
|
|
823
823
|
olympe.j.$a(this.D,()=>this.C.Kg().Wr(),()=>this.C.tf().Wr(),olympe.j.Color),olympe.j.$a(this.D,()=>this.C.Kg().Xr(),()=>this.C.tf().Xr(),olympe.j.ia));this.Ma(olympe.j.Xa([this.D],e=>e.valueOf()?this.C.Kg().Zp():this.C.tf().Zp(),olympe.j.Color));this.Wb(olympe.j.$a(this.D,()=>this.C.Kg().cq(),()=>this.C.tf().cq(),olympe.j.aa));this.Ld(olympe.j.$a(this.D,()=>this.C.Kg().zi(),()=>this.C.tf().zi(),olympe.j.aa),olympe.j.$a(this.D,()=>this.C.Kg().pl(),()=>this.C.tf().pl(),olympe.j.Color));this.Yg(olympe.j.$a(this.D,
|
|
824
824
|
()=>this.C.Kg().bq(),()=>this.C.tf().bq(),olympe.j.kb),olympe.ui.ha.Ah.Uf,olympe.ui.ha.df.Uf,olympe.j.$a(this.D,()=>this.C.Kg().aq(),()=>this.C.tf().aq(),olympe.j.ga),olympe.j.$a(this.D,()=>this.C.Kg().$p(),()=>this.C.tf().$p(),olympe.j.ga));this.R.Wb(olympe.j.$a(this.D,()=>this.C.sf().cq(),()=>this.C.uf().cq(),olympe.j.aa));this.R.Ld(olympe.j.$a(this.D,()=>this.C.sf().zi(),()=>this.C.uf().zi(),olympe.j.aa),olympe.j.$a(this.D,()=>this.C.sf().pl(),()=>this.C.uf().pl(),olympe.j.Color));this.R.$g(olympe.j.$a(this.D,
|
|
825
825
|
()=>this.C.sf().Yr(),()=>this.C.uf().Yr(),olympe.j.ga),olympe.j.$a(this.D,()=>this.C.sf().Zr(),()=>this.C.uf().Zr(),olympe.j.aa),olympe.j.$a(this.D,()=>this.C.sf().$r(),()=>this.C.uf().$r(),olympe.j.aa),olympe.j.$a(this.D,()=>this.C.sf().Wr(),()=>this.C.uf().Wr(),olympe.j.Color),olympe.j.$a(this.D,()=>this.C.sf().Xr(),()=>this.C.uf().Xr(),olympe.j.ia));this.R.Ma(olympe.j.$a(this.D,()=>this.C.sf().Zp(),()=>this.C.uf().Zp(),olympe.j.Color));this.R.Yg(olympe.j.$a(this.D,()=>this.C.sf().bq(),()=>this.C.uf().bq(),
|
|
826
|
-
olympe.j.kb),olympe.ui.ha.Ah.Uf,olympe.ui.ha.df.Uf,olympe.j.$a(this.D,()=>this.C.sf().aq(),()=>this.C.uf().aq(),olympe.j.ga),olympe.j.$a(this.D,()=>this.C.sf().$p(),()=>this.C.uf().$p(),olympe.j.ga));const c=this.W,d=this.Cd().ya(this.R.Cd()).ya(this.W);a=olympe.j.$a(this.D,()=>d,()=>c,olympe.j.aa);a=olympe.j.Gi(a,this.C.hA(),olympe.j.aa.Dh.GQ);olympe.j.
|
|
826
|
+
olympe.j.kb),olympe.ui.ha.Ah.Uf,olympe.ui.ha.df.Uf,olympe.j.$a(this.D,()=>this.C.sf().aq(),()=>this.C.uf().aq(),olympe.j.ga),olympe.j.$a(this.D,()=>this.C.sf().$p(),()=>this.C.uf().$p(),olympe.j.ga));const c=this.W,d=this.Cd().ya(this.R.Cd()).ya(this.W);a=olympe.j.$a(this.D,()=>d,()=>c,olympe.j.aa);a=olympe.j.Gi(a,this.C.hA(),olympe.j.aa.Dh.GQ);olympe.j.cg(this.D,()=>{this.ca.ah(1);const e=setTimeout(()=>{this.ca.ah(-1)},olympe.j.Qa(lc(this.C.hA(),200)).valueOf());olympe.j.yb().Ve(clearTimeout.bind(null,
|
|
827
827
|
e))});mc(this.da,a)}$I(){const a=F(this.D);I(this.D,!(a&&a.valueOf()))}Ka(a,b){b=b?b:olympe.oa.pk();this.T[b]||(this.T[b]=a);return b}Ha(a){delete this.T[a]}qA(){return this.D}Ff(a){olympe.j.Wa([a],b=>{K(this.D,b)});return this}Cf(a){olympe.j.Zb(a)?this.disabled.repeat(a):this.disabled.update(olympe.j.hc(a))}Df(a){K(this.W,a);return this}YD(){return this.R}oW(){return this.C}};h=olympe.ui.F.He.prototype;h.$I.K=olympe.j.J.C([]);h.qA.K=olympe.j.J.T;h.Ff.K=olympe.j.J.C([0]);h.Df.K=olympe.j.J.C([]);
|
|
828
|
-
h.YD.K=new olympe.j.J(()=>olympe.ui.F.
|
|
828
|
+
h.YD.K=new olympe.j.J(()=>olympe.ui.F.ye,[]);h.oW.K=new olympe.j.J(()=>olympe.ui.F.ea.gi,[]);olympe.ui.F.od=class extends olympe.ui.F.ce{constructor(a,b,c,d){super(a);const e=olympe.ui.Na.D().Xw(d);this.ma=olympe.j.ub(olympe.j.Kk,b);this.Eb=olympe.j.Ab();this.R=olympe.j.dd();this.xb=olympe.j.dd();this.da=M(olympe.j.Za(olympe.j.aa,'DropDown.arrowIconPaddingRight'),olympe.j.Ba(10));this.W=M(olympe.j.Za(olympe.j.ia,'DropDown.displayOnTop'),olympe.j.ia.pb);this.Oa=M(olympe.j.Za(olympe.j.aa,'DropDown.arrowIconPaddingRight'),olympe.j.aa.ZERO);this.paddingLeft=olympe.j.la(0);this.paddingRight=olympe.j.la(0);
|
|
829
829
|
this.paddingTop=olympe.j.la(0);this.paddingBottom=olympe.j.la(0);this.Ka=olympe.j.Ab();this.Pb=olympe.j.Ab();this.kc=olympe.j.Ab();this.vf=olympe.j.la();this.ld=olympe.j.dd();this.Ha=olympe.j.Ab();this.T=olympe.j.ub(Object);this.cf=olympe.j.Xa([this.T],()=>olympe.j.ia.C,olympe.j.ia,'hasSelectedValue',olympe.j.ia.pb);this.ca=new Map;this.C=M(olympe.j.Za(olympe.j.ia,'DropDown.isExpanded'),olympe.j.ia.pb);this.Yc=olympe.j.Ab(this.Ka);this.gd=olympe.j.Ab();olympe.ui.F.od.prototype.$d.call(this,e);olympe.j.Wa([this.ma],
|
|
830
830
|
g=>{ic(this.T,g.Ee())});this.D=new olympe.ui.F.Xe(this.na());this.D.kh(()=>{this.C.update(olympe.j.Qa(this.C.wa().Re()))});Kf(this,this.D,'summaryContainer');a=new olympe.ui.F.Xe(new olympe.j.ga(this.na().qa().ya(this.R.qa()).ya(this.paddingLeft).ya(this.paddingRight).ya(this.da.wa()),this.na().ta().ya(this.paddingTop).ya(this.paddingBottom)));this.ob=new olympe.ui.F.cb(a.na(),this.Yc);this.ob.Jb(this.gd).rd(this.cf);a.appendChild(this.ob,'placeholder');b=c.render(ic(this.T,c.getType()),a.na());b.Bg(this.kc);
|
|
831
|
-
a.appendChild(b,'currentValue');this.D.appendChild(a,'textContainer',new olympe.j.ga(this.paddingLeft,this.paddingTop));a=new olympe.ui.F.
|
|
831
|
+
a.appendChild(b,'currentValue');this.D.appendChild(a,'textContainer',new olympe.j.ga(this.paddingLeft,this.paddingTop));a=new olympe.ui.F.ye(this.R);a.Yg(this.Eb,olympe.ui.ha.Ah.Uf,olympe.ui.ha.df.Uf,this.R,this.xb);this.D.appendChild(a,'arrowImg',new olympe.j.ga(this.na().qa().ya(this.da.wa()).ya(this.R.qa()),this.na().ta().ya(this.R.ta()).Ua(2)));jc(this.ma.get(this.Ha),g=>{olympe.j.Zb(g)?mc(this.T,g):I(this.T,g)});const f=new olympe.ui.F.xd(this.na().qa());this.ma.forEach((g,k)=>{const l=new olympe.ui.F.Xe(this.na());
|
|
832
832
|
f.appendChild(l,k);const m=c.render(g,this.na());l.appendChild(m,k);l.Vc(()=>{I(this.Ha,k);this.C.update(olympe.j.ia.pb);for(const n of this.ca.values())n(k,g)});olympe.j.$a(l.Ih(),()=>m.Bg(this.Pb),()=>m.Bg(this.Ka))});olympe.j.$a(this.C.wa(),()=>{const g=olympe.ui.Na.hf();var k=g.na().qa();const l=g.na().ta(),m=this.D.xh().ta(),n=m.Sa(this.D.na().ta()),p=e.HN(),r=olympe.ui.Na.O('dropdown-overlay'),t=olympe.ui.Na.O('dropdown-list'),u=olympe.j.la(),v=olympe.j.la();olympe.j.$a(f.na().ta().hE(l.ya(n)).or(l.ya(m).Mj(m)),
|
|
833
|
-
()=>{mc(u,olympe.j.$a(this.W,()=>m,()=>n,olympe.j.aa));mc(v,f.na().ta().vn(l.ya(u)))},()=>{mc(v,f.na().ta().vn(olympe.j.$a(this.W,()=>n,()=>m,olympe.j.aa)));mc(u,olympe.j.$a(this.W,()=>n.ya(v),()=>m.ya(v),olympe.j.aa))});const w=new olympe.ui.F.wd(new olympe.j.ga(this.na().qa(),v));w.Ld(p.zi(),p.pl());w.Wb(p.cq());w.Ma(p.Zp());w.Yg(p.bq(),olympe.ui.ha.Ah.Uf,olympe.ui.ha.df.Uf,p.aq(),p.$p());w.$g(p.Yr(),p.Zr(),p.$r(),p.Wr(),p.Xr());w.ah(t);w.Nd(f);w.Wb(this.Oa.wa());k=new olympe.ui.F.
|
|
834
|
-
l));k.Vc(()=>{this.C.update(olympe.j.ia.pb)});k.ah(r);g.appendChild(k,'dropdown-overlay');g.appendChild(w,'dropdown-list',new olympe.j.ga(this.D.xh().qa().Sa(this.ld.qa()),u))},()=>{olympe.ui.Na.R('dropdown-overlay');olympe.ui.Na.R('dropdown-list')})}qP(a){olympe.j.Zb(a)?mc(this.Ha,a):I(this.Ha,a);return this}BO(){return this.C.wa()}
|
|
833
|
+
()=>{mc(u,olympe.j.$a(this.W,()=>m,()=>n,olympe.j.aa));mc(v,f.na().ta().vn(l.ya(u)))},()=>{mc(v,f.na().ta().vn(olympe.j.$a(this.W,()=>n,()=>m,olympe.j.aa)));mc(u,olympe.j.$a(this.W,()=>n.ya(v),()=>m.ya(v),olympe.j.aa))});const w=new olympe.ui.F.wd(new olympe.j.ga(this.na().qa(),v));w.Ld(p.zi(),p.pl());w.Wb(p.cq());w.Ma(p.Zp());w.Yg(p.bq(),olympe.ui.ha.Ah.Uf,olympe.ui.ha.df.Uf,p.aq(),p.$p());w.$g(p.Yr(),p.Zr(),p.$r(),p.Wr(),p.Xr());w.ah(t);w.Nd(f);w.Wb(this.Oa.wa());k=new olympe.ui.F.ye(new olympe.j.ga(k,
|
|
834
|
+
l));k.Vc(()=>{this.C.update(olympe.j.ia.pb)});k.ah(r);g.appendChild(k,'dropdown-overlay');g.appendChild(w,'dropdown-list',new olympe.j.ga(this.D.xh().qa().Sa(this.ld.qa()),u))},()=>{olympe.ui.Na.R('dropdown-overlay');olympe.ui.Na.R('dropdown-list')})}qP(a){olympe.j.Zb(a)?mc(this.Ha,a):I(this.Ha,a);return this}BO(){return this.C.wa()}ag(a,b){b=b?b:olympe.oa.pk();this.ca.has(b)||this.ca.set(b,a);return b}lg(a){this.ca.delete(a)}zC(a){K(this.Eb,a)}yC(a){K(this.R,a)}aJ(a){K(this.xb,a)}YO(a){olympe.j.Zb(a)?
|
|
835
835
|
this.da.repeat(a):this.da.update(a)}cP(a){olympe.j.Zb(a)?this.C.repeat(a):this.C.update(a)}$O(a){olympe.j.Zb(a)?this.W.repeat(a):this.W.update(a)}iP(a){olympe.j.Zb(a)?this.Oa.repeat(a):this.Oa.update(a)}kP(a){K(this.ld,a)}Fc(a){K(this.paddingLeft,a);return this}Kc(a){K(this.paddingRight,a);return this}td(a){K(this.paddingTop,a);return this}sd(a){K(this.paddingBottom,a);return this}Og(a){K(this.gd,a);return this}$Y(a){K(this.Yc,a);return this}bJ(a){K(this.Ka,a)}cJ(a){K(this.Pb,a)}dJ(a){K(this.kc,a)}eJ(a){K(this.vf,
|
|
836
836
|
a)}$d(a){a&&(super.$d(a),this.bJ(a.FN()),this.cJ(a.KN()),this.dJ(a.$N()),this.eJ(a.aO()),this.kP(a.GN()),this.sd(a.PH()),this.Fc(a.QH()),this.Kc(a.RH()),this.td(a.SH()),this.zC(a.R),this.yC(a.LM()),this.aJ(a.KM()))}};h=olympe.ui.F.od.prototype;h.qP.K=olympe.j.J.C([]);h.BO.K=olympe.j.J.T;h.zC.K=olympe.j.J.C([]);h.yC.K=olympe.j.J.C([]);h.aJ.K=olympe.j.J.C([]);h.YO.K=olympe.j.J.C([]);h.cP.K=olympe.j.J.C([]);h.$O.K=olympe.j.J.C([]);h.iP.K=olympe.j.J.C([]);h.kP.K=olympe.j.J.C([]);h.Fc.K=olympe.j.J.C([]);
|
|
837
837
|
h.Kc.K=olympe.j.J.C([]);h.td.K=olympe.j.J.C([]);h.sd.K=olympe.j.J.C([]);h.Og.K=olympe.j.J.C([]);h.$Y.K=olympe.j.J.C([]);h.bJ.K=olympe.j.J.C([]);h.cJ.K=olympe.j.J.C([]);h.dJ.K=olympe.j.J.C([]);h.eJ.K=olympe.j.J.C([]);function Wf(a){a.C.setPosition(new olympe.j.ga(a.T,0));const b=olympe.j.Wc(!1),c=olympe.ui.Na.hf().qk().wh().qa().ya(a.xh().qa()),d=olympe.j.aa.DD(c.ya(a.da),0,a.W.ya(a.C.na().qa()));K(a.T,olympe.j.$a(b,()=>d,()=>F(a.T)));a.C.kh(()=>{I(a.da,olympe.j.Ba(F(c).valueOf()-F(a.T).valueOf()));I(b,olympe.j.hc(!0))});olympe.ui.Na.hf().Wg(()=>{I(b,olympe.j.hc(!1))})}
|
|
838
838
|
function Xf(a){a.R.setPosition(new olympe.j.ga(a.W,0));const b=olympe.j.Wc(!1),c=olympe.ui.Na.hf().qk().wh().qa().ya(a.xh().qa()),d=olympe.j.aa.DD(c.ya(a.ma),a.T.Sa(a.C.na().qa()),a.D.na().qa().ya(a.R.na().qa()));K(a.W,olympe.j.$a(b,()=>d,()=>F(a.W)));a.R.kh(()=>{I(a.ma,olympe.j.Ba(F(c).valueOf()-F(a.W).valueOf()));I(b,olympe.j.hc(!0))});olympe.ui.Na.hf().Wg(()=>{I(b,olympe.j.hc(!1))})}
|
|
839
|
-
olympe.ui.F.IH=class extends olympe.ui.F.ce{constructor(a,b){super(a);this.ca=olympe.j.Ab(b);this.Gb(a);this.D=new olympe.ui.F.
|
|
840
|
-
Xf(this);a=new olympe.ui.F.
|
|
841
|
-
a);return this}$d(a){a&&(this.C.$d(a.T()),this.R.$d(a.W()),this.D.$d(a.R()))}};h=olympe.ui.F.IH.prototype;h.cZ.K=olympe.j.J.C([]);h.iW.K=olympe.j.J.D;h.jW.K=olympe.j.J.D;h.EW.K=olympe.j.J.D;h.Bg.K=olympe.j.J.C([]);olympe.ui.F.gH=class extends olympe.ui.F.ce{constructor(a,b,c,d,e,f,g){super(a);this
|
|
839
|
+
olympe.ui.F.IH=class extends olympe.ui.F.ce{constructor(a,b){super(a);this.ca=olympe.j.Ab(b);this.Gb(a);this.D=new olympe.ui.F.ye;this.D.Tj(!0);this.C=new olympe.ui.F.ye;this.C.Tj(!0);this.R=new olympe.ui.F.ye;this.R.Tj(!0);a=olympe.ui.Na.D().rA(this.ca);olympe.ui.F.IH.prototype.$d.call(this,a);this.Ha=olympe.j.qd(215,217,218);this.T=olympe.j.la(0);this.W=olympe.j.la(this.D.na().qa().ya(this.R.na().qa()));this.da=olympe.j.la(0);this.ma=olympe.j.la(0);this.D.setPosition(new olympe.j.ga(0,2.5));Wf(this);
|
|
840
|
+
Xf(this);a=new olympe.ui.F.ye(new olympe.j.ga(this.W.ya(this.T).ya(this.C.na().qa().Ua(2)).Sa(this.R.na().qa().Ua(2)),this.D.na().ta()));a.Tj(!0);a.Ma(this.Ha);a.setPosition(new olympe.j.ga(this.T.Sa(this.C.na().qa().Ua(2)),this.D.ae().ta()));Kf(this,a,'selectedZone');Kf(this,this.D,'bar');Kf(this,this.C,'button1');Kf(this,this.R,'button2')}cZ(a){this.Ha=a;return this}iW(){return this.T.Ua(this.D.na().qa().ya(this.C.na().qa().Sa(this.R.na().qa())))}jW(){return this.W.ya(this.C.na().qa()).Ua(this.D.na().qa().ya(this.C.na().qa().Sa(this.R.na().qa())))}EW(){return this.W.ya(this.T).ya(this.C.na().qa()).Ua(this.D.na().qa().ya(this.C.na().qa().Sa(this.R.na().qa())))}Bg(a){K(this.ca,
|
|
841
|
+
a);return this}$d(a){a&&(this.C.$d(a.T()),this.R.$d(a.W()),this.D.$d(a.R()))}};h=olympe.ui.F.IH.prototype;h.cZ.K=olympe.j.J.C([]);h.iW.K=olympe.j.J.D;h.jW.K=olympe.j.J.D;h.EW.K=olympe.j.J.D;h.Bg.K=olympe.j.J.C([]);olympe.ui.F.gH=class extends olympe.ui.F.ce{constructor(a,b,c,d,e,f,g){super(a);this.ag=olympe.j.Ab(g);this.xk=new olympe.ui.F.xd;this.values=b;this.Cl=0;this.Ne=olympe.j.Wc(void 0===a);this.Nf=olympe.j.Wc(void 0===a);this.vf=olympe.j.Wc(void 0!==e?e:!1);this.C=(this.cf=void 0!==d)?olympe.j.la(d):olympe.j.la();this.ca=new olympe.ui.F.xd(this.na().qa());this.Eb=olympe.j.la();this.Ha=olympe.j.ub(olympe.j.Map,new olympe.j.Map(olympe.j.aa));this.ob=olympe.j.ub(olympe.j.Map,new olympe.j.Map(olympe.j.kb));
|
|
842
842
|
this.ma=olympe.j.ub(olympe.j.Map,new olympe.j.Map(olympe.ui.F.We.ut));this.D=[];this.T=olympe.j.Ab();this.lg=olympe.j.ub(olympe.ui.F.mb);this.Pb=olympe.j.qd();this.kc=olympe.j.Ab();this.xb=olympe.j.Ab();this.Yc=olympe.j.Ab();this.ld=void 0!==f?olympe.j.Wc(f):olympe.j.Wc(!0);this.da=olympe.j.ub(c);this.Oa=olympe.j.Wc(!1);this.gd=olympe.j.ub(olympe.ui.F.Qf);this.R=new olympe.ui.F.wd(new olympe.j.ga(0,0));this.W=new olympe.ui.F.wd(new olympe.j.ga(0,0));this.Ka=olympe.j.dd();K(this.Ka,a);jc(this.da,function(){K(this.Oa,
|
|
843
843
|
!0)}.bind(this));this.values.Gh&&jc(this.values,function(){K(this.Oa,!1)}.bind(this));const k=new olympe.ui.F.xd;Kf(this,k,'mainContainer');k.appendChild(this.R,'horizScroller');const l=new olympe.ui.F.xd;this.R.Nd(l);const m=new olympe.ui.F.Zd(this.C);m.rd(this.vf);l.appendChild(m,'header');olympe.j.$a(this.vf.Re(),()=>{this.ma.forEach((p,r)=>{const t=new olympe.ui.F.cb(new olympe.j.ga(this.Ha.get(r),this.C));t.Bg(this.kc);jc(this.ob.get(r),u=>{t.Jb(u)});m.appendChild(t,'header'+r)})});l.appendChild(this.W,
|
|
844
844
|
'verticalScroller');const n=this.xk;this.W.Nd(n);olympe.j.$a(this.Nf,()=>{olympe.j.$a(this.Ne,()=>{olympe.ui.F.ce.prototype.Gb.call(this,k.na());this.R.Gb(l.na());this.W.Gb(n.na())},()=>{olympe.ui.F.ce.prototype.Gb.call(this,new olympe.j.ga(k.na().qa(),this.Ka.ta()));this.R.Gb(new olympe.j.ga(l.na().qa(),this.na().ta().ya(this.ca.na().ta())));this.W.Gb(new olympe.j.ga(n.na().qa(),this.na().ta().ya(e?0:this.C).ya(this.ca.na().ta())))})},()=>{olympe.j.$a(this.Ne,()=>{olympe.ui.F.ce.prototype.Gb.call(this,
|
|
845
845
|
new olympe.j.ga(this.Ka.qa(),k.na().ta()));this.R.Gb(new olympe.j.ga(this.na().qa(),l.na().ta()));this.W.Gb(new olympe.j.ga(n.na().qa(),n.na().ta()))},()=>{olympe.ui.F.ce.prototype.Gb.call(this,this.Ka);this.R.Gb(new olympe.j.ga(this.na().qa(),this.na().ta().ya(this.ca.na().ta())));this.W.Gb(new olympe.j.ga(n.na().qa(),this.na().ta().ya(e?0:this.C).ya(this.ca.na().ta())))})});k.appendChild(this.ca,'footer');this.values.forEach((p,r)=>{const t=olympe.j.ub(olympe.j.ia,olympe.j.hc(!0));jc(this.gd.filter(p),
|
|
846
|
-
x=>{I(t,x)});const u=olympe.j.di([this.T,this.ld],(x,y)=>olympe.j.hc(x===r&&y),olympe.j.ia),v=new olympe.ui.F.Zd(this.C);v.rd(t.Re());n.appendChild(v,r);const w=new olympe.ui.F.
|
|
847
|
-
r);I(this.da,p);for(let x=0;x<this.D.length;x++)this.D[x](r,p)}});olympe.j.$a(u,()=>{I(this.lg,v)})},p=>{if(void 0!==F(this.T)&&F(this.T).valueOf()===p){K(this.Oa,!1);for(let r=0;r<this.D.length;r++)this.D[r](p,void 0)}});olympe.ui.F.gH.prototype.$d.call(this,olympe.ui.Na.D().Zw(this
|
|
846
|
+
x=>{I(t,x)});const u=olympe.j.di([this.T,this.ld],(x,y)=>olympe.j.hc(x===r&&y),olympe.j.ia),v=new olympe.ui.F.Zd(this.C);v.rd(t.Re());n.appendChild(v,r);const w=new olympe.ui.F.ye(new olympe.j.ga(l.na().qa(),1));w.Ma(this.Pb);w.rd(t.Re());n.appendChild(w,'divider'+r);this.ma.forEach((x,y)=>{const A=x.render(p,new olympe.j.ga(this.Ha.get(y),this.C));A.Bg(this.xb);v.appendChild(A,y);olympe.j.$a(u,()=>{A.Bg(this.Yc)},()=>{A.Bg(this.xb)})});v.Vc(()=>{if(void 0===F(this.T)||F(this.T).valueOf()!==r){I(this.T,
|
|
847
|
+
r);I(this.da,p);for(let x=0;x<this.D.length;x++)this.D[x](r,p)}});olympe.j.$a(u,()=>{I(this.lg,v)})},p=>{if(void 0!==F(this.T)&&F(this.T).valueOf()===p){K(this.Oa,!1);for(let r=0;r<this.D.length;r++)this.D[r](p,void 0)}});olympe.ui.F.gH.prototype.$d.call(this,olympe.ui.Na.D().Zw(this.ag))}hV(a,b,c,d){b=void 0===b?this.Eb:olympe.j.la(b);c=void 0===c?olympe.j.Ab(''):olympe.j.Ab(c);void 0===d&&(d=this.Cl++);F(this.Ha).set(d,b);F(this.ob).set(d,c);F(this.ma).set(d,a);return this}yY(a){const b=F(this.Ha),
|
|
848
848
|
c=F(this.ob),d=F(this.ma);void 0!==b&&b.remove(a);void 0!==c&&c.remove(a);void 0!==d&&d.remove(a);return this}GY(a){K(this.ma,a);return this}IY(a){K(this.Ha,a);return this}HY(a){K(this.ob,a);return this}fS(a){this.D.push(a);return this}NY(a){this.ca.appendChild(a,'footerContent');return this}dS(){return this.da}bZ(a,b){a instanceof olympe.j.Proxy&&(a=F(a));I(this.T,a);mc(this.da,this.values.get(a));void 0!==b&&!0!==b||Nf(this.W,new olympe.j.ga(0,F(this.lg.ae().ta())));for(b=0;b<this.D.length;b++)this.D[b](a,
|
|
849
849
|
F(this.da));return this}eS(){return this.Oa}Ml(a){K(this.ld,a);return this}MW(){return this.R}vs(a){I(this.gd,a);return this}Gb(a){this.Ka=a;return this}Yd(a){K(this.Nf,a);return this}Ed(a){K(this.Ne,a);return this}iJ(a){K(this.kc,a)}fJ(a){K(this.xb,a)}jJ(a){K(this.Yc,a)}Vj(a){K(this.C,a);return this}gJ(a){K(this.Eb,a)}hJ(a){K(this.Pb,a)}$d(a){super.$d(a);this.iJ(a.tN());this.fJ(a.XM());this.jJ(a.ZN());this.cf||this.Vj(a.JN());this.gJ(a.fN());this.hJ(a.oN())}};h=olympe.ui.F.gH.prototype;h.hV.K=olympe.j.J.C([]);
|
|
850
850
|
h.yY.K=olympe.j.J.C([]);h.GY.K=olympe.j.J.C([]);h.IY.K=olympe.j.J.C([]);h.HY.K=olympe.j.J.C([]);h.fS.K=olympe.j.J.C([]);h.NY.K=olympe.j.J.C([]);h.dS.K=new olympe.j.J(()=>Object,[]);h.bZ.K=olympe.j.J.C([]);h.eS.K=olympe.j.J.T;h.Ml.K=olympe.j.J.C([]);h.MW.K=new olympe.j.J(()=>olympe.ui.F.wd,[]);h.vs.K=olympe.j.J.C([]);h.Gb.K=olympe.j.J.C([]);h.Yd.K=olympe.j.J.C([]);h.Ed.K=olympe.j.J.C([]);h.iJ.K=olympe.j.J.C([]);h.fJ.K=olympe.j.J.C([]);h.jJ.K=olympe.j.J.C([]);h.Vj.K=olympe.j.J.C([]);h.gJ.K=olympe.j.J.C([]);
|
|
851
|
-
h.hJ.K=olympe.j.J.C([]);olympe.ui.F.Screen=class{constructor(){}render(){}};olympe.ui.F.Screen.prototype.render.K=new olympe.j.J(()=>olympe.ui.F.mb,[]);olympe.ui.F.Transition=class{constructor(a,b,c,d,e){this.D=a;this.C=b;this.animation=olympe.j.ub(olympe.ui.F.zm);void 0!==e&&K(this.animation,e)}Tr(){return this.animation}};olympe.ui.F.mL=class extends olympe.ui.F.ce{constructor(a){super();this.V=olympe.ui.Na.Cb();this.da=new Map;this.ma=new Map;this.D=new Map;this.C=new Map;this.md=new Map;this.R=olympe.j.Za(olympe.j.kb);this.W=new Map;this.ca=new olympe.ui.F.
|
|
851
|
+
h.hJ.K=olympe.j.J.C([]);olympe.ui.F.Screen=class{constructor(){}render(){}};olympe.ui.F.Screen.prototype.render.K=new olympe.j.J(()=>olympe.ui.F.mb,[]);olympe.ui.F.Transition=class{constructor(a,b,c,d,e){this.D=a;this.C=b;this.animation=olympe.j.ub(olympe.ui.F.zm);void 0!==e&&K(this.animation,e)}Tr(){return this.animation}};olympe.ui.F.mL=class extends olympe.ui.F.ce{constructor(a){super();this.V=olympe.ui.Na.Cb();this.da=new Map;this.ma=new Map;this.D=new Map;this.C=new Map;this.md=new Map;this.R=olympe.j.Za(olympe.j.kb);this.W=new Map;this.ca=new olympe.ui.F.ye(this.na());this.T='storyboard_overlay_'+String((new Date).getTime()+Math.random()).replace(/[^0-9]/,'');this.Gb(a)}vW(){return this.R.wa()}BD(a,b){this.da.set(b,a);this.C.set(b,olympe.j.Wc(!1));this.ma.set(b,olympe.j.$a(this.C.get(b),()=>{const c=this.da.get(b);
|
|
852
852
|
let d=this.D.get(b);c?d||(d=c.render(this.na(),void 0),d instanceof olympe.j.Proxy||(d=olympe.j.ub(olympe.ui.F.mb,d)),this.D.set(b,d)):this.V.warn(`Screen with id ${b} doesn't exist!`)},()=>{this.D.delete(b)},void 0,[],'If screen loaded '+b).Tb)}zD(a,b,c){this.W.set(c,new olympe.ui.F.Transition(a,b,c,void 0,void 0))}zY(a){this.W.delete(a);return this}eP(){I(this.C.get('login'),olympe.j.hc(!0));this.ma.get('login').run(()=>{Kf(this,this.D.get('login'),'login')});this.R.update(olympe.j.ic('login'))}VA(a){const b=
|
|
853
853
|
olympe.ui.Na,c=b.hf(),d=olympe.j.Qa,e=this.W.get(a);if(void 0===e)return this.V.warn('Transition with id '+a+" doesn't exist!"),this;const f=e.C,g='*'===e.D?F(this.R.wa()).valueOf():e.D;if(f===g)return this;I(this.C.get(f),olympe.j.hc(!0));a=this.D.get(f);const k=this.D.get(g),l=()=>{for(const n in this.C.keys()){const p=this.C.get(n);d(p).valueOf()&&n!==e.C&&!this.md.has(e.C+n)&&K(p,olympe.j.hc(!1))}this.R.update(olympe.j.ic(f))},m=d(e.Tr());void 0!==m&&null!==m?(Kf(this,d(a),f),this.ca.ah(b.O(this.T)),
|
|
854
|
-
c.appendChild(this.ca,this.T),m.run(k,a,g,f,this,()=>{this.O().removeChild(g);b.R(this.T);c.removeChild(this.T);l()})):(this.O().removeChild(g),Kf(this,d(a),f),l());return this}O(){return this.
|
|
854
|
+
c.appendChild(this.ca,this.T),m.run(k,a,g,f,this,()=>{this.O().removeChild(g);b.R(this.T);c.removeChild(this.T);l()})):(this.O().removeChild(g),Kf(this,d(a),f),l());return this}O(){return this.te()}};h=olympe.ui.F.mL.prototype;h.vW.K=olympe.j.J.R;h.BD.K=olympe.j.J.C([]);h.zD.K=olympe.j.J.C([]);h.zY.K=olympe.j.J.C([]);h.eP.K=olympe.j.J.C([]);h.VA.K=olympe.j.J.C([]);olympe.ui.F.Mb=class extends olympe.ui.F.mb{constructor(a,b){const c=olympe.j.ga,d=olympe.j.Color,e=olympe.j.Qa;super(olympe.ui.Na.C(olympe.N.F.Mb,olympe.host.ab.jb.ZK),a);this.W=olympe.j.Ab('');this.da=olympe.j.Za(olympe.j.kb);this.fontSize=olympe.j.Za(olympe.j.aa);this.ma=olympe.j.Za(olympe.j.aa);this.Oa=olympe.j.Za(d);this.backgroundColor=olympe.j.Za(d);this.Ha=null;this.ob=olympe.j.Ab(b);this.R=olympe.j.Za(olympe.j.Kk);this.Ka=olympe.j.Za(olympe.j.ia).update(olympe.j.ia.pb);this.ca=olympe.j.Za(olympe.j.Be);
|
|
855
855
|
this.C=null;const f=this.na().qa(),g=this.fontSize.wa(),k=l=>{const m=(new olympe.ui.F.cb(new c(f,this.fontSize.wa().Sa(4)))).Xb(olympe.ui.ha.rc.Sc).lb(this.Oa.wa()).Jb(l).Fc(5);m.rb(g).vb(this.da.wa()).Bb(this.ma.wa());m.kh(()=>{this.Ka.update(olympe.j.ia.C);this.Jb(e(l));this.mj();this.Ka.update(olympe.j.ia.pb)});m.gj(()=>{m.Ma(Cc().LD(.5))});m.Hi(()=>{m.Ma(Dc())});return m};olympe.j.Wa([super.nu(),this.R.wa().Qc()],(l,m)=>{0<m.valueOf()&&null===this.C&&l.valueOf()&&(Q(this,()=>{let n=new olympe.j.Be(olympe.j.kb),
|
|
856
856
|
p=new olympe.j.Be(olympe.j.kb);olympe.j.Wa([this.R.wa(),this.R.wa().Qc(),this.W],(u,v,w)=>{const x=n;p.clear();let y=0;0<v&&u.yi(A=>{(0===w.tA().valueOf()||A.toLowerCase().contains(w.toLowerCase()).and(A.Se(w).Re()).valueOf())&&p.set(A.valueOf(),A,y++)});n=p;p=x;this.ca.update(n)});var r=this.ca.wa().Qc();r=new c(f,g.Sa(9).hb(oc(3,r)));const t=new olympe.ui.F.jt(r,this.ca.wa(),olympe.j.kb,k,5,!1);this.C=new olympe.ui.F.RQ(t);this.C.Ma(this.backgroundColor.wa());this.C.Sk(super.nu().and(this.ca.wa().Qc().Mj(0)));
|
|
857
|
-
olympe.j.Wa([r.ta(),this.xh().ta(),this.na().ta(),olympe.ui.Na.hf().na().ta()],(u,v,w,x)=>{w.Sa(v).Sa(u).valueOf()<x.valueOf()?this.C.Ew(this,olympe.ui.F.
|
|
858
|
-
this.R.repeat(a):this.R.update(a);return this}getValue(){return this.W}nu(){return super.nu().or(this.Ka.wa())}Bb(a){olympe.j.Zb(a)?this.ma.repeat(a):this.ma.update(olympe.j.Ba(a));T(this).Bb(a);return this}vb(a){olympe.j.Zb(a)?this.da.repeat(a):this.da.update(olympe.j.ic(a));T(this).vb(a);return this}rb(a){olympe.j.Zb(a)?this.fontSize.repeat(a):this.fontSize.update(olympe.j.Ba(a));T(this).rb(a);return this}Od(a){T(this).Od(a);return this}lb(a){olympe.j.
|
|
859
|
-
return this}Ma(a){olympe.j.Zb(a)?this.backgroundColor.repeat(a):this.backgroundColor.update(a);super.Ma(a);return this}zn(a){T(this).zn(a);return this}av(a){T(this).av(a);return this}Yu(a){T(this).Yu(a);return this}fv(a){T(this).fv(a);return this}Og(a){T(this).Og(a);return this}Zg(a){T(this).Zg(olympe.j.
|
|
857
|
+
olympe.j.Wa([r.ta(),this.xh().ta(),this.na().ta(),olympe.ui.Na.hf().na().ta()],(u,v,w,x)=>{w.Sa(v).Sa(u).valueOf()<x.valueOf()?this.C.Ew(this,olympe.ui.F.hg.D.ez,olympe.ui.F.hg.O.wy):this.C.Ew(this,olympe.ui.F.hg.D.ez,olympe.ui.F.hg.O.kD)})}),olympe.j.yb().destroy())});a=olympe.ui.Na.D().jx(this.ob);olympe.ui.F.Mb.prototype.$d.call(this,a);T(this).Gl(l=>{I(this.W,olympe.j.ic(l))})}Sj(){T(this).Sj();return this}Cf(a){T(this).Cf(a);return this}Ff(a){T(this).Ff(a);return this}Jb(a){T(this).Ff(a);return this}Lj(){return this.W}fZ(a){olympe.j.Zb(a)?
|
|
858
|
+
this.R.repeat(a):this.R.update(a);return this}getValue(){return this.W}nu(){return super.nu().or(this.Ka.wa())}Bb(a){olympe.j.Zb(a)?this.ma.repeat(a):this.ma.update(olympe.j.Ba(a));T(this).Bb(a);return this}vb(a){olympe.j.Zb(a)?this.da.repeat(a):this.da.update(olympe.j.ic(a));T(this).vb(a);return this}rb(a){olympe.j.Zb(a)?this.fontSize.repeat(a):this.fontSize.update(olympe.j.Ba(a));T(this).rb(a);return this}Od(a){T(this).Od(a);return this}lb(a){olympe.j.cg(a,b=>{b&&b.ei&&(this.Oa.update(b),T(this).lb(b.ei()))});
|
|
859
|
+
return this}Ma(a){olympe.j.Zb(a)?this.backgroundColor.repeat(a):this.backgroundColor.update(a);super.Ma(a);return this}zn(a){T(this).zn(a);return this}av(a){T(this).av(a);return this}Yu(a){T(this).Yu(a);return this}fv(a){T(this).fv(a);return this}Og(a){T(this).Og(a);return this}Zg(a){T(this).Zg(olympe.j.cg(a,b=>b.ei()));return this}Ub(a){T(this).Ub(a);return this}Xb(a){T(this).Xb(a);return this}bi(a){T(this).bi(a);return this}Fc(a){T(this).Fc(a);return this}Kc(a){T(this).Kc(a);return this}td(a){T(this).td(a);
|
|
860
860
|
return this}sd(a){T(this).sd(a);return this}Pu(a){T(this).Pu(a);return this}ip(a=olympe.j.ia.C){T(this).ip(a);return this}Uc(){null===this.Ha&&(this.Ha=new olympe.ui.X.Zn(T(this)));return this.Ha}Hj(){return this.Uc().Hj()}Gj(){return this.Uc().Gj()}Ij(){return this.Uc().Ij()}ej(a,b,c){return this.Uc().ej(a,b,c)}D(a){this.Uc().D(a)}Ak(a,b,c){return this.Uc().Ak(a,b,c)}T(a){this.Uc().T(a)}fj(a,b,c){return this.Uc().fj(a,b,c)}O(a){this.Uc().O(a)}Bg(a){K(this.ob,a);return this}$d(a){a&&(olympe.ui.F.mb.prototype.$d.call(this,
|
|
861
861
|
a),this.rb(a.lI()),this.Bb(a.Bi()),this.vb(a.Ai()),this.Od(a.yl()),this.sd(a.mI()),this.Fc(a.nI()),this.Kc(a.oI()),this.td(a.pI()),this.lb(a.qI()),this.Ub(a.rI()),this.Xb(a.sI()),this.Zg(a.RN()))}};olympe.ui.F.Mb.Aa=[olympe.ui.X.sg,olympe.ui.F.Dv];h=olympe.ui.F.Mb.prototype;h.Sj.K=olympe.j.J.C([]);h.Cf.K=olympe.j.J.C([]);h.Ff.K=olympe.j.J.C([]);h.Jb.K=olympe.j.J.C([]);h.Lj.K=olympe.j.J.R;h.fZ.K=olympe.j.J.C([0]);h.getValue.K=olympe.j.J.R;h.nu.K=olympe.j.J.T;h.Bb.K=olympe.j.J.C([]);h.vb.K=olympe.j.J.C([]);
|
|
862
862
|
h.rb.K=olympe.j.J.C([]);h.Od.K=olympe.j.J.C([]);h.lb.K=olympe.j.J.C([]);h.zn.K=olympe.j.J.C([]);h.av.K=olympe.j.J.C([]);h.Yu.K=olympe.j.J.C([]);h.fv.K=olympe.j.J.C([]);h.Og.K=olympe.j.J.C([]);h.Zg.K=olympe.j.J.C([]);h.Ub.K=olympe.j.J.C([]);h.Xb.K=olympe.j.J.C([]);h.bi.K=olympe.j.J.C([]);h.Fc.K=olympe.j.J.C([]);h.Kc.K=olympe.j.J.C([]);h.td.K=olympe.j.J.C([]);h.sd.K=olympe.j.J.C([]);h.Pu.K=olympe.j.J.C([]);h.ip.K=olympe.j.J.C([]);h.Uc.K=new olympe.j.J(()=>olympe.ui.X.Zn,[]);
|
|
863
863
|
h.Hj.K=new olympe.j.J(()=>olympe.ui.X.qe,[]);h.Gj.K=new olympe.j.J(()=>olympe.ui.X.qe,[]);h.Ij.K=new olympe.j.J(()=>olympe.ui.X.qe,[]);h.ej.K=new olympe.j.J(()=>String,[]);h.Ak.K=new olympe.j.J(()=>String,[]);h.fj.K=new olympe.j.J(()=>String,[]);h.Bg.K=olympe.j.J.C([]);olympe.ui.F.Pc=class extends olympe.ui.F.mb{constructor(a,b){super(olympe.ui.Na.C(olympe.N.F.Pc,olympe.host.ab.jb.YK));this.C=olympe.j.Ab('');this.R=null;b=olympe.ui.Na.D().ix(b);olympe.ui.F.Pc.prototype.$d.call(this,b);this.Gb(void 0!==a?a:b.na());T(this).Gl(c=>{I(this.C,olympe.j.ic(c))})}Ff(a){T(this).Ff(a);return this}Jb(a){T(this).Ff(a);return this}getValue(){return this.C}Lj(){return this.C}Bb(a){T(this).Bb(a);return this}vb(a){T(this).vb(a);return this}rb(a){T(this).rb(a);return this}Od(a){T(this).Od(a);
|
|
864
|
-
return this}lb(a){olympe.j.
|
|
864
|
+
return this}lb(a){olympe.j.cg(a,b=>{b&&b.ei&&T(this).lb(b.ei())});return this}Ub(a){T(this).Ub(a);return this}Xb(a){T(this).Xb(a);return this}Fc(a){T(this).Fc(a);return this}Kc(a){T(this).Kc(a);return this}td(a){T(this).td(a);return this}sd(a){T(this).sd(a);return this}Og(a){T(this).Og(a);return this}Zg(a){T(this).Zg(olympe.j.cg(a,b=>b.ei()));return this}Sj(){T(this).Sj();return this}Cf(a){T(this).Cf(a);return this}jp(a){olympe.j.Wa([a],b=>{b.valueOf()?T(this).jp(!0,olympe.j.yb().re(c=>{I(olympe.j.Qa(this.na()).ta(),
|
|
865
865
|
olympe.j.Ba(c))})):T(this).jp(!1)});return this}Uc(){this.R||(this.R=new olympe.ui.X.Zn(T(this)));return this.R}Hj(){return this.Uc().Hj()}Gj(){return this.Uc().Gj()}Ij(){return this.Uc().Ij()}ej(a){return this.Uc().ej(a)}D(a){this.Uc().D(a)}Ak(a){return this.Uc().Ak(a)}T(a){this.Uc().T(a)}fj(a){return this.Uc().fj(a)}O(a){this.Uc().O(a)}$d(a){super.$d(a);this.rb(a.dI());this.Bb(a.Bi());this.vb(a.Ai());this.Od(a.yl());this.sd(a.eI());this.Fc(a.fI());this.Kc(a.gI());this.td(a.hI());this.lb(a.iI());
|
|
866
866
|
this.Ub(a.jI());this.Xb(a.kI())}};olympe.ui.F.Pc.Aa=[olympe.ui.F.Dv,olympe.ui.X.sg];h=olympe.ui.F.Pc.prototype;h.Ff.K=olympe.j.J.C([]);h.Jb.K=olympe.j.J.C([]);h.getValue.K=olympe.j.J.R;h.Lj.K=olympe.j.J.R;h.Bb.K=olympe.j.J.C([]);h.vb.K=olympe.j.J.C([]);h.rb.K=olympe.j.J.C([]);h.Od.K=olympe.j.J.C([]);h.lb.K=olympe.j.J.C([]);h.Ub.K=olympe.j.J.C([]);h.Xb.K=olympe.j.J.C([]);h.Fc.K=olympe.j.J.C([]);h.Kc.K=olympe.j.J.C([]);h.td.K=olympe.j.J.C([]);h.sd.K=olympe.j.J.C([]);h.Og.K=olympe.j.J.C([]);h.Zg.K=olympe.j.J.C([]);
|
|
867
867
|
h.Sj.K=olympe.j.J.C([]);h.Cf.K=olympe.j.J.C([]);h.jp.K=olympe.j.J.C([0]);h.Uc.K=new olympe.j.J(()=>olympe.ui.X.Zn,[]);h.Hj.K=new olympe.j.J(()=>olympe.ui.X.qe,[]);h.Gj.K=new olympe.j.J(()=>olympe.ui.X.qe,[]);h.Ij.K=new olympe.j.J(()=>olympe.ui.X.qe,[]);h.ej.K=new olympe.j.J(()=>String,[]);h.Ak.K=new olympe.j.J(()=>String,[]);h.fj.K=new olympe.j.J(()=>String,[]);olympe.ui.F.Jd=class extends olympe.ui.F.mb{constructor(a){super(olympe.ui.Na.C(olympe.N.F.Jd,olympe.host.ab.jb.$K),a);this.C=new olympe.j.ga(olympe.j.la(),olympe.j.la());this.ra().hx((b,c)=>{K(this.C.qa(),b);K(this.C.ta(),c)});this.D=olympe.j.Za(olympe.j.ia).update(olympe.j.ia.C);this.R=olympe.j.Za(olympe.j.ia).update(olympe.j.ia.pb);this.O=olympe.j.Za(olympe.j.ia).update(olympe.j.ia.pb);this.volume=olympe.j.Za(olympe.j.aa).update(olympe.j.aa.ONE);this.T=olympe.j.Za(olympe.j.aa).update(olympe.j.aa.ZERO);
|
|
868
|
-
this.duration=olympe.j.Za(olympe.j.aa).update(olympe.j.aa.ZERO);this.ra().Vo(()=>{this.D.update(olympe.j.ia.pb)});this.ra().Uo(()=>{this.D.update(olympe.j.ia.C)});this.ra().Yo((b,c)=>{this.volume.update(olympe.j.Ba(b));this.R.update(olympe.j.hc(c))});this.ra().Wo(b=>{this.T.update(olympe.j.Ba(b))});this.ra().Po(()=>{this.O.update(olympe.j.ia.C)});this.ra().Oo(b=>{this.duration.update(olympe.j.Ba(b))})}ne(a){this.ra().ne(a);return this}$j(a){this.ra().$j(olympe.j.
|
|
868
|
+
this.duration=olympe.j.Za(olympe.j.aa).update(olympe.j.aa.ZERO);this.ra().Vo(()=>{this.D.update(olympe.j.ia.pb)});this.ra().Uo(()=>{this.D.update(olympe.j.ia.C)});this.ra().Yo((b,c)=>{this.volume.update(olympe.j.Ba(b));this.R.update(olympe.j.hc(c))});this.ra().Wo(b=>{this.T.update(olympe.j.Ba(b))});this.ra().Po(()=>{this.O.update(olympe.j.ia.C)});this.ra().Oo(b=>{this.duration.update(olympe.j.Ba(b))})}ne(a){this.ra().ne(a);return this}$j(a){this.ra().$j(olympe.j.cg(a,b=>b?b.ra():null));return this}hx(){return this.C}nj(a){this.ra().nj(a);
|
|
869
869
|
return this}jj(a){this.ra().jj(a);return this}Xj(a){this.ra().Xj(a);return this}oj(a){this.ra().oj(a);return this}play(){this.ra().play();return this}pause(){this.ra().pause();return this}reload(){this.ra().reload();return this}Ik(a){this.ra().Ik(pc(0,oc(1,a)));return this}Gk(a){this.ra().Gk(a);return this}};h=olympe.ui.F.Jd.prototype;h.ne.K=olympe.j.J.C([]);h.$j.K=olympe.j.J.C([]);h.nj.K=olympe.j.J.C([]);h.jj.K=olympe.j.J.C([]);h.Xj.K=olympe.j.J.C([]);h.oj.K=olympe.j.J.C([]);olympe.ui.F.Audio=class extends olympe.ui.F.mb{constructor(a){super(olympe.ui.Na.C(olympe.N.F.Audio,olympe.host.ab.jb.SK),a);this.C=olympe.j.Za(olympe.j.ia).update(olympe.j.ia.C);this.D=olympe.j.Za(olympe.j.ia).update(olympe.j.ia.pb);this.R=olympe.j.Za(olympe.j.ia).update(olympe.j.ia.pb);this.volume=olympe.j.Za(olympe.j.aa).update(olympe.j.aa.ONE);this.O=olympe.j.Za(olympe.j.aa).update(olympe.j.aa.ZERO);this.duration=olympe.j.Za(olympe.j.aa).update(olympe.j.aa.ZERO);this.ra().Vo(()=>{this.C.update(olympe.j.ia.pb)});
|
|
870
|
-
this.ra().Uo(()=>{this.C.update(olympe.j.ia.C)});this.ra().Yo((b,c)=>{this.volume.update(olympe.j.Ba(b));this.D.update(olympe.j.hc(c))});this.ra().Wo(b=>{this.O.update(olympe.j.Ba(b))});this.ra().Po(()=>{this.R.update(olympe.j.ia.C)});this.ra().Oo(b=>{this.duration.update(olympe.j.Ba(b))})}ne(a){this.ra().ne(a);return this}$j(a){this.ra().$j(olympe.j.
|
|
871
|
-
return this}play(){this.ra().play();return this}pause(){this.ra().pause();return this}reload(){this.ra().reload();return this}Ik(a){this.ra().Ik(pc(0,oc(1,a)));return this}Gk(a){this.ra().Gk(a);return this}};h=olympe.ui.F.Audio.prototype;h.ne.K=olympe.j.J.C([]);h.$j.K=olympe.j.J.C([]);h.nj.K=olympe.j.J.C([]);h.jj.K=olympe.j.J.C([]);h.Xj.K=olympe.j.J.C([]);h.oj.K=olympe.j.J.C([]);olympe.ui.F.Tt=class extends olympe.ui.F.mb{constructor(a,b){super(olympe.ui.Na.C(olympe.N.F.Tt,olympe.host.ab.jb.aL),a);void 0!==b&&this.Hk(b)}Hk(a){T(this).Hk(a)}};olympe.ui.F.ZU=class extends olympe.ui.F.ce{constructor(a,b){super(a);this.kc=olympe.j.Ab(b);a=olympe.ui.Na.D().EA(this.kc);this.D=olympe.j.la();this.vf=olympe.j.la();this.lg=olympe.j.la();this.cf=olympe.j.Ab();this.Yc=olympe.j.la();this.ld=olympe.j.qd();this.Pb=olympe.j.la();this.Eb=olympe.j.qd();this
|
|
872
|
-
0,0,0,!1,this.na().ta());this.C=new olympe.ui.F.Xe(olympe.j.dd(this.na().qa(),this.D));this.R=new olympe.ui.F.tm(olympe.j.dd(this.da,this.D));this.xb=olympe.j.Ab();this.W=olympe.j.dd();this.ob=olympe.j.dd();this.Oa=olympe.j.Wc();this.ma=olympe.j.qd();this.Ka=olympe.j.la();this.Ha=olympe.j.qd();this.Cl=new olympe.ui.F.cb(olympe.j.dd(this.na().qa(),this.D));this.close=new olympe.ui.F.
|
|
873
|
-
olympe.ui.ha.df.Sb,this.W,this.ob);this.T.appendChild(this.C,'titleContainer');this.T.Ld(this.Pb,this.Eb);this.C.appendChild(this.Cl,'titleText',olympe.j.dd(0,0));this.C.appendChild(this.R,'closeButtonContainer',olympe.j.dd(this.na().qa().ya(this.R.na().ta()),0));this.C.Ld(this.Yc,this.ld);this.C.Wb(this.gd);this.R.Ma(this.ca);this.R.appendChild(this.close,'closeButton',olympe.j.dd(.5,.5));olympe.ui.F.ZU.prototype.$d.call(this,a);a=this.Cl;a.rb(this.vf);a.Bb(this.lg);a.vb(this.cf);a.lb(this
|
|
874
|
-
a.Ub(this.xk);a.Xb(this.Ko);Kf(this,this.T,'WindowComponent')}Nd(a,b){this.T.appendChild(a,b);return this}$d(a){super.$d(a);K(this.D,olympe.j.la(a.rO()));K(this.vf,olympe.j.la(a.pO()));K(this.lg,olympe.j.la(a.qO()));K(this.cf,olympe.j.Ab(a.oO()));K(this
|
|
870
|
+
this.ra().Uo(()=>{this.C.update(olympe.j.ia.C)});this.ra().Yo((b,c)=>{this.volume.update(olympe.j.Ba(b));this.D.update(olympe.j.hc(c))});this.ra().Wo(b=>{this.O.update(olympe.j.Ba(b))});this.ra().Po(()=>{this.R.update(olympe.j.ia.C)});this.ra().Oo(b=>{this.duration.update(olympe.j.Ba(b))})}ne(a){this.ra().ne(a);return this}$j(a){this.ra().$j(olympe.j.cg(a,b=>b?b.ra():null));return this}nj(a){this.ra().nj(a);return this}jj(a){this.ra().jj(a);return this}Xj(a){this.ra().Xj(a);return this}oj(a){this.ra().oj(a);
|
|
871
|
+
return this}play(){this.ra().play();return this}pause(){this.ra().pause();return this}reload(){this.ra().reload();return this}Ik(a){this.ra().Ik(pc(0,oc(1,a)));return this}Gk(a){this.ra().Gk(a);return this}};h=olympe.ui.F.Audio.prototype;h.ne.K=olympe.j.J.C([]);h.$j.K=olympe.j.J.C([]);h.nj.K=olympe.j.J.C([]);h.jj.K=olympe.j.J.C([]);h.Xj.K=olympe.j.J.C([]);h.oj.K=olympe.j.J.C([]);olympe.ui.F.Tt=class extends olympe.ui.F.mb{constructor(a,b){super(olympe.ui.Na.C(olympe.N.F.Tt,olympe.host.ab.jb.aL),a);void 0!==b&&this.Hk(b)}Hk(a){T(this).Hk(a)}};olympe.ui.F.ZU=class extends olympe.ui.F.ce{constructor(a,b){super(a);this.kc=olympe.j.Ab(b);a=olympe.ui.Na.D().EA(this.kc);this.D=olympe.j.la();this.vf=olympe.j.la();this.lg=olympe.j.la();this.cf=olympe.j.Ab();this.Yc=olympe.j.la();this.ld=olympe.j.qd();this.Pb=olympe.j.la();this.Eb=olympe.j.qd();this.ag=olympe.j.qd();this.da=olympe.j.la();this.xk=olympe.j.ub(String,olympe.ui.ha.Db.Sb);this.Ko=olympe.j.ub(String,olympe.ui.ha.rc.Sc);this.ca=olympe.j.qd();this.gd=olympe.j.la();this.T=new olympe.ui.F.xd(this.na().qa(),
|
|
872
|
+
0,0,0,!1,this.na().ta());this.C=new olympe.ui.F.Xe(olympe.j.dd(this.na().qa(),this.D));this.R=new olympe.ui.F.tm(olympe.j.dd(this.da,this.D));this.xb=olympe.j.Ab();this.W=olympe.j.dd();this.ob=olympe.j.dd();this.Oa=olympe.j.Wc();this.ma=olympe.j.qd();this.Ka=olympe.j.la();this.Ha=olympe.j.qd();this.Cl=new olympe.ui.F.cb(olympe.j.dd(this.na().qa(),this.D));this.close=new olympe.ui.F.ye(this.W);this.close.rd(this.Oa);this.close.Ma(this.ma);this.close.Ld(this.Ka,this.Ha);this.close.Yg(this.xb,olympe.ui.ha.Ah.Us,
|
|
873
|
+
olympe.ui.ha.df.Sb,this.W,this.ob);this.T.appendChild(this.C,'titleContainer');this.T.Ld(this.Pb,this.Eb);this.C.appendChild(this.Cl,'titleText',olympe.j.dd(0,0));this.C.appendChild(this.R,'closeButtonContainer',olympe.j.dd(this.na().qa().ya(this.R.na().ta()),0));this.C.Ld(this.Yc,this.ld);this.C.Wb(this.gd);this.R.Ma(this.ca);this.R.appendChild(this.close,'closeButton',olympe.j.dd(.5,.5));olympe.ui.F.ZU.prototype.$d.call(this,a);a=this.Cl;a.rb(this.vf);a.Bb(this.lg);a.vb(this.cf);a.lb(this.ag);a.Ma(this.ca);
|
|
874
|
+
a.Ub(this.xk);a.Xb(this.Ko);Kf(this,this.T,'WindowComponent')}Nd(a,b){this.T.appendChild(a,b);return this}$d(a){super.$d(a);K(this.D,olympe.j.la(a.rO()));K(this.vf,olympe.j.la(a.pO()));K(this.lg,olympe.j.la(a.qO()));K(this.cf,olympe.j.Ab(a.oO()));K(this.ag,a.sO());K(this.Yc,olympe.j.la(a.mO()));K(this.ld,a.lO());var b=a.uO();K(this.xk,a.tO());K(this.Ko,b);K(this.ca,a.kO());K(this.gd,a.nO());K(this.Pb,a.hN());K(this.Eb,a.gN());K(this.xb,a.dN());K(this.W,a.cN());K(this.Oa,a.aN());K(this.ma,a.YM());
|
|
875
875
|
K(this.da,a.TM());K(this.ob,a.bN());K(this.Ka,a.$M());K(this.Ha,a.ZM())}Bg(a){K(this.kc,a);return this}};let Yf=0;function Zf(a,b){return a.C.wa().getMonth().Se(b.getMonth())}function $f(a,b){return a.C.wa().eq().Se(b.eq()).and(Zf(a,b))}function ag(a,b){K(a.Yc,olympe.j.hc(b))}
|
|
876
|
-
olympe.ui.F.
|
|
876
|
+
olympe.ui.F.eg=class extends olympe.ui.F.ce{constructor(a,b,c,d){function e(u,v){return olympe.j.Xa([u],w=>{let x=(new Date(w.getYear(),w.getMonth()-1,1)).getDay();const y=(new Date(w.getYear(),w.getMonth(),0)).getDate();0===x&&(x=7);return v<x-1?uc(new Date(w.getYear(),w.getMonth()-1,1)).$t(-(x-(v+1))):v-(x-1)<y?uc(new Date(w.getYear(),w.getMonth()-1,1)).$t(v-(x-1)):42>v?uc(new Date(w.getYear(),w.getMonth(),1)).$t(v-(x-1)-y):uc(w)},olympe.j.ac)}function f(){for(let u=0;3>u;u++)for(let v=0;4>v;v++)p(u,
|
|
877
877
|
v)}function g(){for(let u=0;6>u;u++)for(let v=0;7>v;v++)r(u,v)}super(a);const k=void 0===c?olympe.j.Ba(400):c.qa(),l=void 0===c?olympe.j.Ba(400):c.ta();c='Mon Tue Wed Thu Fri Sat Sun'.split(' ');this.Cl=olympe.j.dd();this.Ko=olympe.j.Ab();this.T=olympe.j.qd();this.lE=olympe.j.la();this.kE=olympe.j.qd();this.da=olympe.j.qd();this.xE=olympe.j.qd();olympe.j.qd();this.hF=Fc(this.da.Al(),this.da.zl(),this.da.ol());this.Oa=olympe.j.oY();this.C=olympe.j.Za(olympe.j.ac).update(olympe.j.Qa(olympe.j.ac.now()));
|
|
878
|
-
this.Yc=olympe.j.Wc(!1);this
|
|
878
|
+
this.Yc=olympe.j.Wc(!1);this.ag=void 0===b?olympe.j.ia.C:b;this.Ha=null;this.D=new olympe.ui.F.Mb(void 0,'default');this.Ka=null;this.lg=olympe.j.ub(olympe.ui.F.pf,olympe.ui.Na.hf());this.Pb=this.cf=this.vf=this.gd=this.Eb=this.xb=this.ma=this.ld=this.ob=this.W=this.R=null;this.kc=Yf++;this.Ls=olympe.j.qd();this.fF=olympe.j.la();this.ca=olympe.j.Wc(!0);const m=new Intl.DateTimeFormat(void 0,{month:'short'}),n=new Intl.DateTimeFormat(void 0,{weekday:'short'}),p=(u,v)=>{const w=new olympe.ui.F.cb(new olympe.j.ga(k.Ua(5),
|
|
879
879
|
k.Ua(5)));w.Wb(k);w.Ub(olympe.ui.ha.Db.Sb);w.Xb(olympe.ui.ha.rc.Sc);const x=olympe.j.ub(olympe.j.ac,tc({year:olympe.j.Qa(this.C.wa()).getYear(),month:4*u+v+1,day:olympe.j.Qa(this.C.wa()).eq()}));olympe.j.Wa([x],y=>{m.format(y.nv())});olympe.j.$a(Zf(this,x),()=>{w.lb(O()).rb(18).Bb(600).Ld(1,O())},()=>{w.lb(this.da).Bb(400).rb(16).Ld(0,O())});w.Ma(this.T);w.Vc(()=>{this.C.update(tc({year:olympe.j.Qa(this.C.wa()).getYear(),month:4*u+v+1,day:olympe.j.Qa(this.C.wa()).eq()}));K(this.ca,olympe.j.ia.C);
|
|
880
880
|
g()});olympe.j.$a(w.Ih(),()=>w.Ld(1,O()),()=>{const y=olympe.j.Qa(Zf(this,x));y&&y.valueOf()||w.Ld(1,this.T)});this.vf.appendChild(w,'dpMonthElem'+(4*u+v),new olympe.j.ga(k.Ua(4).hb(v).Sa(k.Ua(4).ya(k.Ua(5)).Ua(2)),l.Ua(10).hb(9).Ua(3).hb(u)))},r=(u,v)=>{const w=new olympe.ui.F.cb(new olympe.j.ga(l.Ua(10),l.Ua(10)));w.Wb(k);w.Ub(olympe.ui.ha.Db.Sb);w.Xb(olympe.ui.ha.rc.Sc);const x=e(this.C.wa(),7*u+v);w.Jb(x.eq().og());olympe.j.$a(Zf(this,x),()=>{olympe.j.$a($f(this,x),()=>{w.lb(Ac());w.Ma(O())},
|
|
881
881
|
()=>{w.lb(this.da);w.Ma(Dc())})},()=>{w.lb(this.hF);w.Ma(Dc())});w.Vc(()=>{this.C.update(tc({year:olympe.j.Qa(x).getYear(),month:olympe.j.Qa(x).getMonth(),day:olympe.j.Qa(x).eq()}));K(this.Oa,this.C.wa());ag(this,olympe.j.Wc(!1))});olympe.j.$a(this.C.wa().mp().Se(x.mp()).Re(),()=>{const y=olympe.j.Qa(Zf(this,x));void 0!==y&&y.valueOf()&&w.lb(O());w.Ma(this.T)});w.Ld(olympe.j.$a(w.Ih(),()=>1,()=>0,olympe.j.aa),olympe.j.$a(w.Ih(),()=>O(),()=>this.T,olympe.j.Color));this.cf.appendChild(w,'dpElem'+(7*
|
|
882
|
-
u+v),new olympe.j.ga(k.Ua(7).hb(v).Sa(k.Ua(7).ya(l.Ua(8)).Ua(2)),l.Ua(10).hb(u).hb(7).Ua(6)))},t=(u,v)=>{u=u.split('/');if(3===u.length){const w=tc({year:parseInt(u[2],10),month:parseInt(u[1],10),day:parseInt(u[0],10)});if(!w.an()||4>u[2].length)return v;K(this.Oa,w);return w}return v};b=olympe.ui.Na.D().OD(d);olympe.ui.F.
|
|
883
|
-
this.D.Gb(a);this.D.Bg('default');this.Pb=new olympe.ui.F.Zd(a.ta(),8);this.Pb.appendChild(this.D,'datepickerField');this.D.fj(()=>{this.C.update(t(olympe.j.Qa(this.D.Lj()).valueOf(),this.C.wa()))});olympe.j.Wa([this.Oa],u=>{this.D.Jb(u.mp())});if(this
|
|
882
|
+
u+v),new olympe.j.ga(k.Ua(7).hb(v).Sa(k.Ua(7).ya(l.Ua(8)).Ua(2)),l.Ua(10).hb(u).hb(7).Ua(6)))},t=(u,v)=>{u=u.split('/');if(3===u.length){const w=tc({year:parseInt(u[2],10),month:parseInt(u[1],10),day:parseInt(u[0],10)});if(!w.an()||4>u[2].length)return v;K(this.Oa,w);return w}return v};b=olympe.ui.Na.D().OD(d);olympe.ui.F.eg.prototype.$d.call(this,b);this.R=new olympe.ui.F.xd;this.R.Ma(this.T);this.R.Ld(this.lE,this.kE);this.ag.valueOf()?this.D.Gb(new olympe.j.ga(a.qa().ya(a.ta()).ya(8),a.ta())):
|
|
883
|
+
this.D.Gb(a);this.D.Bg('default');this.Pb=new olympe.ui.F.Zd(a.ta(),8);this.Pb.appendChild(this.D,'datepickerField');this.D.fj(()=>{this.C.update(t(olympe.j.Qa(this.D.Lj()).valueOf(),this.C.wa()))});olympe.j.Wa([this.Oa],u=>{this.D.Jb(u.mp())});if(this.ag){this.gd=(new olympe.ui.F.jc(new olympe.j.ga(a.ta(),a.ta()),'default')).Bg('default').Jb('\uf073').vb('Fontawesome');this.gd.Vc(()=>{ag(this,olympe.j.$a(F(this.Yc),()=>olympe.j.ia.pb,()=>olympe.j.ia.C,olympe.j.ia))});this.W=new olympe.ui.F.cb(new olympe.j.ga(k.Ua(8).hb(6),
|
|
884
884
|
l.Ua(8)));this.W.Jb(olympe.j.Xa([this.C.wa(),this.ca],(v,w)=>{const x=v.getYear().og();return w.valueOf()?olympe.j.ic(m.format(v.nv())).bA(x,' '):x},olympe.j.kb));this.W.lb(O());olympe.j.$a(this.W.Ih(),()=>{this.W.rb(18);this.W.Bb(600)},()=>{this.W.rb(16);this.W.Bb(400)});this.W.Xb(olympe.ui.ha.rc.Sc);this.W.Ub(olympe.ui.ha.Db.Sb);this.W.Vc(()=>{olympe.j.$a(F(this.ca),()=>K(this.ca,olympe.j.ia.pb))});this.xb=new olympe.ui.F.jc(new olympe.j.ga(k.Ua(8),l.Ua(8)),'\uf053');this.xb.Ma(this.T).rb(20).Bb(500).lb(O()).vb('FontAwesome');
|
|
885
885
|
this.xb.Vc(()=>{if(void 0===this.C.wa())return!1;if(F(this.ca).valueOf()){if(void 0!==this.C.wa())return this.C.update(this.C.wa().Xz(-1)),g(),!0}else if(void 0!==this.C.wa())return this.C.update(this.C.wa().Cw(-1)),g(),!0;return!1});this.xb.Ld(0,this.T);this.Eb=new olympe.ui.F.jc(new olympe.j.ga(k.Ua(8),l.Ua(8)),'\uf054');this.Eb.Ma(this.T).rb(20).Bb(500).lb(O()).vb('FontAwesome');this.Eb.Vc(()=>{if(void 0===this.C.wa())return!1;F(this.ca).valueOf()?this.C.update(this.C.wa().Xz(1)):this.C.update(this.C.wa().Cw(1));
|
|
886
886
|
g();return!0});this.Eb.Ld(0,this.T);this.ma=new olympe.ui.F.jc(new olympe.j.ga(k,l.Ua(10)));this.ma.Jb(olympe.j.Xa([this.C.wa()],v=>{v=v.nv();return olympe.j.ic(`${n.format(v)} ${v.getDate()} ${m.format(v)} ${v.getFullYear()}`)},olympe.j.kb));this.ma.lb(this.da);this.ma.Ma(this.T);this.ma.Zj(olympe.j.Color.create(0,150,136,.8));this.ma.Vc(()=>{ag(this,olympe.j.ia.pb);K(this.ca,olympe.j.ia.C);K(this.Oa,this.C.wa())});this.ma.Ld(0,this.T);this.ob=new olympe.ui.F.Zd;this.ld=new olympe.ui.F.Zd(l.Ua(10));
|
|
@@ -888,20 +888,20 @@ this.cf=new olympe.ui.F.Xe(new olympe.j.ga(k,l.Ua(10).hb(7)));this.vf=new olympe
|
|
|
888
888
|
this.xk.appendChild(this.ma,'panelBottomDate');let u=olympe.j.ia.C;this.R.appendChild(this.ob,'panelTop');olympe.j.$a(this.ca,()=>{u.Re().valueOf()&&this.R.removeChild('panelMonthsContent');this.R.appendChild(this.ld,'panelTitles');this.R.appendChild(this.cf,'panelDaysContent');this.R.appendChild(this.xk,'panelBottom');u=olympe.j.ia.pb},()=>{u.Re().valueOf()&&(this.R.removeChild('panelTitles'),this.R.removeChild('panelDaysContent'),this.R.removeChild('panelBottom'));this.R.appendChild(this.vf,'panelMonthsContent');
|
|
889
889
|
u=olympe.j.ia.pb});this.Ha=new olympe.ui.F.wd(this.lg.na());this.Ha.Ma(new olympe.j.Color(0,0,0,0));this.Ha.Vc(()=>{ag(this,olympe.j.ia.pb);K(this.ca,olympe.j.ia.C)});olympe.j.$a(this.Yc,()=>{this.Ka=F(this.lg);this.Ha&&this.Ka.appendChild(this.Ha,'datepickerPanelOverlay_'+this.kc);this.Ka.appendChild(this.R,'datepickerPanel_'+this.kc,new olympe.j.ga(this.xh().qa(),this.xh().ta().Sa(a.ta().Sa(8))))},()=>{if(this.Ka){const v=this.Ka;this.Ka=null;v.removeChild('datepickerPanel_'+this.kc);this.Ha&&v.removeChild('datepickerPanelOverlay_'+
|
|
890
890
|
this.kc)}});this.Pb.appendChild(this.gd,' datepickerButton')}Kf(this,this.Pb,'datepickerFieldContent')}getValue(){return this.Oa}Ff(a){this.C.update(a);K(this.Oa,a)}Og(a){this.D.Og(a)}Ub(a){this.D.Ub(a);return this}Xb(a){this.D.Xb(a);return this}Jb(a){const b=rc(a);this.Ff(olympe.j.$a(b.an(),()=>b,()=>{},olympe.j.ac));return this}Bb(a){this.D.Bb(a);return this}vb(a){this.D.vb(a);return this}rb(a){this.D.rb(a);return this}Od(a){this.D.Od(a);return this}lb(a){this.D.lb(a);return this}$d(a){super.$d(a);
|
|
891
|
-
K(this.T,a.ON());K(this.da,a.QN());K(this.xE,a.PN());K(this.Cl,a.VM());K(this.Ko,a.WM());this.Ma(a.SM());this.D.Ma(a.cO());this.D.lb(a.jO());this.D.Zg(a.iO());this.D.rb(a.fO());this.D.Bb(a.gO());K(this.Ls,a.dO());K(this.fF,a.eO());this.D.Fc(a.hO())}};olympe.ui.F.
|
|
891
|
+
K(this.T,a.ON());K(this.da,a.QN());K(this.xE,a.PN());K(this.Cl,a.VM());K(this.Ko,a.WM());this.Ma(a.SM());this.D.Ma(a.cO());this.D.lb(a.jO());this.D.Zg(a.iO());this.D.rb(a.fO());this.D.Bb(a.gO());K(this.Ls,a.dO());K(this.fF,a.eO());this.D.Fc(a.hO())}};olympe.ui.F.eg.Aa=[olympe.ui.F.Dv];olympe.ui.F.Id=class extends olympe.ui.F.ce{constructor(a,b=0,c=100,d=1){super(a);const e=this.na();this.D=olympe.j.Xa([e.qa(),e.ta()],(y,A)=>olympe.j.hc(y>=A),olympe.j.ia);this.min=olympe.j.la(b);this.max=olympe.j.la(c);this.ob=olympe.j.la(d);this.R=olympe.j.Za(olympe.j.aa);this.disabled=olympe.j.Za(olympe.j.ia).update(olympe.j.ia.pb);a=olympe.j.Qa(this.min);M(this.R,a?a:olympe.j.aa.ZERO);olympe.j.ls([this.max.ya(this.min).Ua(2).Sa(this.min)],y=>{this.R.update(y)});this.value=this.R.wa();olympe.j.Wa([this.min],
|
|
892
892
|
y=>{M(this.R,y)});this.T=Object.create(null);const f=oc(e.qa(),e.ta()).ya(4),g=pc(f.Ua(2).Sa(2),olympe.j.Ba(5));this.lineWidth=olympe.j.la(5);const k=olympe.j.Xa([this.D],y=>y.valueOf()?new olympe.j.ga(e.qa().ya(g.hb(2)),this.lineWidth):new olympe.j.ga(this.lineWidth,e.ta().ya(g.hb(2))),olympe.j.ga);a=olympe.j.Xa([this.D],y=>y.valueOf()?new olympe.j.ga(g,e.ta().ya(this.lineWidth).Ua(2)):new olympe.j.ga(e.qa().ya(this.lineWidth).Ua(2),g),olympe.j.ga);this.Ha=P(N());this.ma=P(Cc());this.Oa=P(Ac());
|
|
893
|
-
this.da=P(N());this.Ka=P(zc('lime',0,255,0,1));this.W=olympe.j.la(1);this.ca=new olympe.ui.F.
|
|
893
|
+
this.da=P(N());this.Ka=P(zc('lime',0,255,0,1));this.W=olympe.j.la(1);this.ca=new olympe.ui.F.ye(k);this.ca.setPosition(a).Ma(this.Ha);Kf(this,this.ca,'SliderLine');a=olympe.j.Xa([this.D],y=>y.valueOf()?new olympe.j.ga(this.value.ya(this.min).Ua(this.max.ya(this.min)).hb(k.qa()).round().ya(f.Ua(2)).Sa(g),e.ta().ya(f).Ua(2)):new olympe.j.ga(e.qa().ya(f).Ua(2),this.value.ya(this.min).Ua(this.max.ya(this.min)).hb(k.ta()).round().ya(f.Ua(2)).Sa(g)),olympe.j.ga);this.C=new olympe.ui.F.em(f);this.C.setPosition(a).Ld(this.W,
|
|
894
894
|
this.da).Ma(this.ma);Kf(this,this.C,'SliderKnob');this.ca.yh(!0);this.yh(!1);const l=olympe.j.Qa,m=y=>{var A=l(this.D).valueOf();const H=l(this.min).valueOf(),G=l(this.max).valueOf()-H,R=l(g);A=A?l(l(k).qa()).valueOf():l(l(k).ta()).valueOf();y=y<R?0:y-R;y=y>A?A:y;this.Ff(y/A*G+H)},n=y=>{y?(this.C.Ld(this.W,this.Ka),this.C.Ma(this.Oa)):(this.C.Ld(this.W,this.da),this.C.Ma(this.ma))};let p=null,r=null,t=null,u=null,v=null,w=null,x=null;olympe.j.$a(this.disabled.wa().Re(),()=>{const y=()=>{n(!1);null!==
|
|
895
895
|
r&&this.Ng(r);null!==t&&this.dj(t);t=r=null;null!==p&&(p.destroy(),p=null)},A=()=>{null!==u&&this.dn(u);u=null;n(!1);null!==p&&(p.destroy(),p=null)},H=G=>{const R=l(G.sk().qa());G=l(G.sk().ta());const fa=l(this.D).valueOf(),Ra=l(f).valueOf()/2,sa=l(g);m((fa?R:G)-Ra+sa);n(!0);r=this.Wg(y);t=this.Bk(y)};v=this.Ck(G=>{H(l(G.Vd()))});w=this.kh(H);x=this.To(G=>{null!==r&&this.Ng(r);null!==t&&this.dj(t);t=r=null;u=this.So(A);const R=l(this.D).valueOf(),fa=l(f).valueOf()/2,Ra=R?l(l(this.C.ae()).qa()).valueOf()+
|
|
896
896
|
fa:l(l(this.C.ae()).ta()).valueOf()+fa;p=new olympe.j.ee('SliderMouseMove-'+olympe.oa.bf());p.run(()=>{R?olympe.j.Wa([G.fq().qa()],sa=>{m(Ra+sa)}):olympe.j.Wa([G.fq().ta()],sa=>{m(Ra+sa)})})})},()=>{null!==r&&(this.Ng(r),r=null);null!==t&&(this.dj(t),t=null);null!==u&&(this.dn(u),u=null);null!==v&&(this.No(v),v=null);null!==w&&(this.yk(w),w=null);null!==x&&(this.xq(x),x=null)})}getValue(){return this.value}Ff(a){olympe.j.Wa([a,this.min,this.max,this.ob],(b,c,d,e)=>{if(c.Mj(d).valueOf()){const f=d;
|
|
897
897
|
d=c;c=f}b=pc(b,c);b=oc(b,d);if(b>=c&&b<=d){b=0!==e.valueOf()?olympe.j.Ba(Math.round(b/e)*e):b;this.R.update(b);for(const f in this.T)this.T[f](b)}else this.R.clear()});return this}Cf(a){olympe.j.Zb(a)?this.disabled.repeat(a):this.disabled.update(olympe.j.hc(a))}tP(a){K(this.ma,a)}vP(a){K(this.Oa,a)}sP(a){K(this.W,a)}rP(a){K(this.da,a)}uP(a){K(this.Ka,a)}hP(a){K(this.Ha,a)}Lh(a){K(this.lineWidth,'number'===typeof a?olympe.j.Ba(a):a);return this}NO(a,b){b=b?b:olympe.oa.pk();this.T[b]||(this.T[b]=a);
|
|
898
|
-
return b}JO(a){delete this.T[a]}hZ(a,b,c,d,e){this.C.$g(a,b,c,d,e);return this}};h=olympe.ui.F.Id.prototype;h.getValue.K=olympe.j.J.D;h.Ff.K=olympe.j.J.C([0]);h.tP.K=olympe.j.J.C([0]);h.vP.K=olympe.j.J.C([0]);h.sP.K=olympe.j.J.C([0]);h.rP.K=olympe.j.J.C([0]);h.uP.K=olympe.j.J.C([0]);h.hP.K=olympe.j.J.C([0]);h.Lh.K=olympe.j.J.C([0]);h.NO.K=new olympe.j.J(()=>String,[0,1]);h.JO.K=new olympe.j.J(()=>{},[0]);h.hZ.K=olympe.j.J.C([0,1,2,3,4]);const bg=olympe.j.ga,cg=olympe.j.Qa,dg=olympe.ui.F.
|
|
898
|
+
return b}JO(a){delete this.T[a]}hZ(a,b,c,d,e){this.C.$g(a,b,c,d,e);return this}};h=olympe.ui.F.Id.prototype;h.getValue.K=olympe.j.J.D;h.Ff.K=olympe.j.J.C([0]);h.tP.K=olympe.j.J.C([0]);h.vP.K=olympe.j.J.C([0]);h.sP.K=olympe.j.J.C([0]);h.rP.K=olympe.j.J.C([0]);h.uP.K=olympe.j.J.C([0]);h.hP.K=olympe.j.J.C([0]);h.Lh.K=olympe.j.J.C([0]);h.NO.K=new olympe.j.J(()=>String,[0,1]);h.JO.K=new olympe.j.J(()=>{},[0]);h.hZ.K=olympe.j.J.C([0,1,2,3,4]);const bg=olympe.j.ga,cg=olympe.j.Qa,dg=olympe.ui.F.ye,eg=olympe.ui.F.Xe;function fg(a){var b=cg(a.height);b=a.D.length*b*-1;let c=cg(a.R.ae().qa());c.valueOf()>b&&(b=qc(c,b,200,olympe.j.aa.Dh.dt),olympe.j.Wa([b],d=>{gg(a,d.valueOf())}))}function gg(a,b){var c=cg(a.height);b=Math.max(Math.min(b,0),a.D.length*c*-1);c=-b/a.D.length;let d=cg(a.width).valueOf()+b;a.R.ae().oe(b);for(const e of a.D)e.na().oe(c),e.ae().oe(d),d+=c}
|
|
899
899
|
class hg extends olympe.ui.F.ce{constructor(a,b,c,d){const e=c.na().ta();super(new bg(b,e));this.C=a;this.width=b;this.height=e;this.R=c;this.item=d;this.D=[];let f=void 0,g=void 0,k=void 0,l=void 0;a=new eg(new bg(b,e));c.setPosition(new bg(0,0));let m=!1,n=!1;const p=()=>{g&&c.Ng(g);k&&c.dj(k);k=g=void 0;f&&(f.destroy(),f=void 0);n||m||this.C.Ha(d);m=n=!1},r=()=>{l&&c.dn(l);l=void 0;f&&(f.destroy(),f=void 0);if(n){var v=cg(this.height);v=this.D.length*v/2*-1;cg(this.R.ae().qa()).valueOf()<v?fg(this):
|
|
900
900
|
this.close();n=!1}m=!1},t=()=>{n=m=!1;g=c.Wg(p);k=c.Bk(p)};c.Ck(v=>{t(cg(v.Vd()))});c.kh(t);c.To(v=>{l=c.So(r);f=new olympe.j.ee('SlidingMouseMove-'+olympe.oa.bf());const w=cg(this.R.ae().qa()).valueOf(),x=cg(this.C.T().ta());f.run(()=>{olympe.j.Wa([v.fq().qa(),v.fq().ta()],(y,A)=>{y=y.valueOf();const H=A.valueOf();5>=Math.abs(H)&&3>Math.abs(y)||(g&&c.Ng(g),k&&c.dj(k),k=g=void 0,!n&&5<Math.abs(H)?(m=!0,y=cg(this.C.T().qa()),Nf(this.C,new bg(y,x.ya(A)))):(n=!0,gg(this,w+y)))});ig(this.C,this)})});
|
|
901
901
|
a.appendChild(c,'element');let u=0;for(const v of this.C.buttons){const w=new dg(new bg(e,e));w.Yg(v.url);w.setPosition(new bg(b.Sa(e.hb(u)),0));w.kp(olympe.ui.ha.Ah.Vs);w.Vc(()=>{m||n||!v.callback||v.callback(d)});this.D.push(w);a.appendChild(w,'image'+u);u++}Kf(this,a,'absLayout')}destroy(){this.C=null;this.D.length=0}close(){var a=cg(this.R.ae().qa());0>a.valueOf()&&(a=qc(a,0,200,olympe.j.aa.Dh.dt),olympe.j.Wa([a],b=>{gg(this,b.valueOf())}))}}
|
|
902
902
|
function ig(a,b){a.O!==b&&(a.O&&a.O.close(),a.O=b)}function jg(a,b){a.buttons.push({url:'images/QuestionMark.png',callback:b})}
|
|
903
903
|
olympe.ui.F.uU=class extends olympe.ui.F.wd{constructor(a,b,c,d){var e=olympe.sc.ui.Vh;super(a);this.data=b;this.type=e;this.C=new olympe.ui.F.xd(a.qa());this.R=olympe.j.Za(olympe.j.Color).update(Cc());this.Ha=d;this.We=c;this.buttons=[];this.D=new Map;this.O=null;const f=a.qa();this.Ds(olympe.j.ia.pb);olympe.j.Wa([this.data],g=>{this.C.mg();for(const l of this.D.values())l.destroy();this.D.clear();const k=(new dg(new bg(f,2))).Ma(this.R.wa());this.C.appendChild(k,'last');g.forEach(l=>{this.C.removeChild('last');
|
|
904
|
-
const m=new olympe.ui.F.xd(f);var n=this.We(l);const p=new dg(new bg(f,2));p.Ma(this.R.wa());m.appendChild(p,'separator',olympe.ui.ha.Db.Sb);n=new hg(this,f,n,l);m.appendChild(n,'line');this.D.set(l.toString(),n);this.C.appendChild(m,l.toString(),olympe.ui.ha.Db.Sb);this.C.appendChild(k,'last')},l=>{this.D.get(l.toString())&&(this.D.delete(l.toString()),this.C.removeChild(l.toString()))})});this.Nd(this.C)}};olympe.ui.F.Eh=class extends olympe.ui.F.Element{constructor(){super(olympe.ui.Na.C(olympe.N.F.Eh,olympe.host.ab.jb.pU))}C(){return this.
|
|
904
|
+
const m=new olympe.ui.F.xd(f);var n=this.We(l);const p=new dg(new bg(f,2));p.Ma(this.R.wa());m.appendChild(p,'separator',olympe.ui.ha.Db.Sb);n=new hg(this,f,n,l);m.appendChild(n,'line');this.D.set(l.toString(),n);this.C.appendChild(m,l.toString(),olympe.ui.ha.Db.Sb);this.C.appendChild(k,'last')},l=>{this.D.get(l.toString())&&(this.D.delete(l.toString()),this.C.removeChild(l.toString()))})});this.Nd(this.C)}};olympe.ui.F.Eh=class extends olympe.ui.F.Element{constructor(){super(olympe.ui.Na.C(olympe.N.F.Eh,olympe.host.ab.jb.pU))}C(){return this.te()}addColorStop(a,b){this.C().addColorStop(a,b)}};olympe.ui.F.Eh.prototype.C.K=new olympe.j.J(()=>olympe.N.F.cc,[]);olympe.ui.F.cc=class extends olympe.ui.F.mb{constructor(a){super(olympe.ui.Na.C(olympe.N.F.cc,olympe.host.ab.jb.TK),a)}arc(a,b,c,d,e,f){this.ra().arc(a,b,c,d,e,f);return this}arcTo(a,b,c,d,e){this.ra().arcTo(a,b,c,d,e);return this}beginPath(){this.ra().beginPath();return this}bezierCurveTo(a,b,c,d,e,f){this.ra().bezierCurveTo(a,b,c,d,e,f);return this}clearRect(a,b,c,d){this.ra().clearRect(a,b,c,d);return this}clip(){this.ra().clip();return this}closePath(){this.ra().closePath();return this}fill(){this.ra().fill();
|
|
905
905
|
return this}fillRect(a,b,c,d){this.ra().fillRect(a,b,c,d);return this}fillText(a,b,c,d){this.ra().fillText(a,b,c,d);return this}lineTo(a,b){this.ra().lineTo(a,b);return this}cj(a,b){this.ra().cj(a,b);return this}moveTo(a,b){this.ra().moveTo(a,b);return this}quadraticCurveTo(a,b,c,d){this.ra().quadraticCurveTo(a,b,c,d);return this}rect(a,b,c,d){this.ra().rect(a,b,c,d);return this}stroke(){this.ra().stroke();return this}strokeRect(a,b,c,d){this.ra().strokeRect(a,b,c,d);return this}strokeText(a,b,c,
|
|
906
906
|
d){this.ra().strokeText(a,b,c,d);return this}createLinearGradient(a,b,c,d){this.ra().createLinearGradient(a,b,c,d);return this}addColorStop(a,b){this.ra().addColorStop(a,b);return this}Nw(){this.ra().Nw();return this}lj(a){this.ra().lj(a);return this}Fs(a){this.ra().Fs(a);return this}gS(a){this.ra().lj(a.C().T());return this}Uj(a){this.ra().Uj(a);return this}Mq(a){this.ra().Mq(a);return this}mh(a){this.ra().mh(a);return this}Wj(a){this.ra().Wj(a);return this}Lh(a){this.ra().Lh(a);return this}Kh(a){this.ra().Kh(a);
|
|
907
907
|
return this}Nd(a){this.ra().Nd(a.ra());return this}};h=olympe.ui.F.cc.prototype;h.arc.K=olympe.j.J.C([0,1,2,3,4,5]);h.arcTo.K=olympe.j.J.C([0,1,2,3,4,5]);h.beginPath.K=olympe.j.J.C([]);h.bezierCurveTo.K=olympe.j.J.C([0,1,2,3,4,5]);h.clearRect.K=olympe.j.J.C([0,1,2,3]);h.clip.K=olympe.j.J.C([]);h.closePath.K=olympe.j.J.C([]);h.fill.K=olympe.j.J.C([]);h.fillRect.K=olympe.j.J.C([0,1,2,3]);h.fillText.K=olympe.j.J.C([0,1,2,3]);h.lineTo.K=olympe.j.J.C([0,1]);h.cj.K=olympe.j.J.C([0,1]);
|
|
@@ -912,12 +912,12 @@ olympe.ui.F.WF=class extends olympe.ui.F.xd{constructor(a,{oZ:b,CX:c,tV:d,vZ:e}=
|
|
|
912
912
|
{month:'long'});this.D={AP:(J,V)=>{J.Jb(f(V.day));J.Ma(p(V.oq,()=>Cc(),()=>Dc(),m));J.Xb(olympe.ui.ha.rc.Sc);J.Ub(olympe.ui.ha.Db.Sb);J.lb(p(V.iE,()=>m.red(),()=>p(V.fE,()=>N(),()=>Ac(),m),m))},vO:(J,V,Ia)=>{J.Jb(olympe.j.Xa([Ia],ta=>olympe.j.ic(A.format(ta.nv())),olympe.j.kb)).Bb(800);V.Jb(Ia.getYear().og()).Bb(800);J.Xb(olympe.ui.ha.rc.Sc);J.Ub(olympe.ui.ha.Db.Sb);V.Xb(olympe.ui.ha.rc.Sc);V.Ub(olympe.ui.ha.Db.Sb)},pM:(J,V)=>{J.Jb('<'===V?'\uf104':'\uf105').Bb(800).vb('FontAwesome').Xb(olympe.ui.ha.rc.Sc).Ub(olympe.ui.ha.Db.Sb)},
|
|
913
913
|
weekday:(J,V)=>{J.Jb('Mo Tu We Th Fr Sa Su'.split(' ')[V]);J.Xb(olympe.ui.ha.rc.Sc);J.Ub(olympe.ui.ha.Db.Sb)}};void 0!==b&&(this.D.AP=b);void 0!==c&&(this.D.vO=c);void 0!==d&&(this.D.pM=d);void 0!==e&&(this.D.weekday=e);b=new olympe.ui.F.Zd(a,0,0,0,!1,u);const H=new r(y.ya(10),a);n=J=>{const V=new olympe.ui.F.cb(H);this.D.pM(V,J);return V};const G=J=>{J=l(this.C.wa()).clone().Xz(J);J.NA(this.da,this.ca).Rb(olympe.j.ia.C)&&(this.C.update(J),this.ma(J))};c=n('<');c.Vc(()=>G(-1));d=n('>');d.Vc(()=>G(1));
|
|
914
914
|
e=new olympe.ui.F.cb(new r(u.ya(y.hb(2)).hb(.55),a));a=new olympe.ui.F.cb(new r(u.ya(y.hb(2)).hb(.3),a));const R=n('<');R.Vc(()=>{const J=l(this.C.wa()).clone().Cw(-1);J.NA(this.da,this.ca).Rb(olympe.j.ia.C)&&(this.C.update(J),this.ma(J))});n=n('>');n.Vc(()=>{const J=l(this.C.wa()).clone().Cw(1);J.NA(this.da,this.ca).Rb(olympe.j.ia.C)&&(this.C.update(J),this.ma(J))});this.D.vO(e,a,this.C.wa());b.appendChild(c,'hl_left_arrow');b.appendChild(e,'hl_year');b.appendChild(d,'hl_right_arrow');b.appendChild(R,
|
|
915
|
-
'hl_yleft_arrow');b.appendChild(a,'hl_month');b.appendChild(n,'hl_yright_arrow');this.Ha=new olympe.ui.F.
|
|
915
|
+
'hl_yleft_arrow');b.appendChild(a,'hl_month');b.appendChild(n,'hl_yright_arrow');this.Ha=new olympe.ui.F.ye(new olympe.j.ga(u,1));this.Ha.Ma(Cc());const fa=new olympe.ui.F.Zd(w,0,0,0,!1,u),Ra=J=>{const V=new olympe.ui.F.cb(new r(y,w));this.D.weekday(V,J);return V};Array(7).fill(0).forEach((J,V)=>fa.appendChild(Ra(V),'weekday_'+V));const sa=new olympe.ui.F.xd(u,0,0,0,!1,v.ya(x)),Nb=(J,V)=>{const Ia=new olympe.ui.F.cb(new r(y,V));let ta=null;olympe.j.$a(this.disabled.wa().Re(),()=>{ta=Ia.Vc(()=>{l(J.fE).valueOf()||
|
|
916
916
|
this.C.update(tc({year:J.year,month:J.month,day:1}));this.Wx(tc({year:J.year,month:J.month,day:J.day}))})},()=>{null!==ta&&(this.Pj(ta),ta=null)});this.D.AP(Ia,J);return Ia};k([this.C.wa().getMonth(),this.C.wa().getYear()],(J,V)=>{J=kg(J-1,V);const Ia=v.ya(x).Ua(J.length);J.forEach((ta,Sa)=>{const Va=new olympe.ui.F.Zd(Ia,0,0,0,!1,u);ta.forEach(ja=>{ja.month++;const Yh=wf=>wf.getYear().Se(ja.year).and(wf.getMonth().Se(ja.month).and(wf.eq().Se(ja.day)));ja.iE=Yh(g.now());ja.oq=t(Yh(this.Oa.wa()),!1);
|
|
917
917
|
ja.fE=t(this.C.wa().getMonth().Se(ja.month),!1);Va.appendChild(Nb(ja,Ia),`tile_${ja.month}-${ja.day}`)});sa.appendChild(Va,`tile_line-${Sa}`)})});this.Ma(O());this.ah(1);this.appendChild(sa,'content_layout');this.appendChild(fa,'weekday_layout');this.appendChild(this.Ha,'separator');this.appendChild(b,'header_layout')}dZ(a){this.Ha.Ma(a);return this}VY(a){this.da=a;return this}UY(a){this.ca=a;return this}$A(a){olympe.j.Wa([a],b=>{b=b.clone();b.an().valueOf()&&this.C.update(b)})}FW(){return this.C.wa()}lY(a){this.ma=
|
|
918
918
|
a}Cf(a){olympe.j.Zb(a)?this.disabled.repeat(a):this.disabled.update(olympe.j.hc(a))}Wx(a){olympe.j.Wa([a],b=>{b=b.clone();b.an().valueOf()&&this.Oa.update(b)})}zA(){return this.Oa.wa()}};h=olympe.ui.F.WF.prototype;h.dZ.K=olympe.j.J.C([]);h.VY.K=olympe.j.J.C([]);h.UY.K=olympe.j.J.C([]);h.$A.K=olympe.j.J.C([]);h.FW.K=new olympe.j.J(()=>olympe.j.ac,[]);h.lY.K=olympe.j.J.O;h.Wx.K=olympe.j.J.O;h.zA.K=new olympe.j.J(()=>olympe.j.ac,[]);olympe.ui.F.jw=class extends olympe.ui.F.mb{constructor(a=olympe.ui.F.jw.D.gC,b){const c=new olympe.j.ga;super(olympe.ui.Na.C(olympe.N.F.Ue,olympe.host.ab.jb.eD),c);this.C=olympe.j.Za(olympe.j.aa).update(olympe.j.Ba(a));this.Nf=olympe.j.Za(olympe.j.ia).update(olympe.j.hc(void 0===b));this.Ne=olympe.j.Za(olympe.j.ia).update(olympe.j.hc(void 0===b));const d=b||new olympe.j.ga(100,100);let e=null;const f=olympe.j.yb().re(()=>{null===e&&(e=new olympe.j.ga);T(this).da((g,k)=>{e.oe(g);e.Fe(k)})});olympe.j.Wa([this.Nf,
|
|
919
919
|
this.Ne],(g,k)=>{T(this).jp(g.valueOf(),k.valueOf());k=k.valueOf();g.valueOf()?(f(),c.oe(e.qa()),k?c.Fe(e.ta()):c.Fe(d.ta())):k?(f(),c.oe(d.qa()),c.Fe(e.ta())):(c.oe(d.qa()),c.Fe(d.ta()))})}Jb(a){olympe.j.Wa([a,this.C.wa()],(b,c)=>{switch(c.valueOf()){case olympe.ui.F.jw.D.YS:b=(new remarkable.Remarkable({html:!0,typographer:!0,xhtmlOut:!0})).render(b.valueOf());break;case olympe.ui.F.jw.D.gC:b=b.valueOf();break;default:b=b.valueOf()}T(this).dB(b)});return this}Yd(a){olympe.j.Wa([a],b=>{this.Nf.update(olympe.j.hc(b))});
|
|
920
|
-
return this}Ed(a){olympe.j.Wa([a],b=>{this.Ne.update(olympe.j.hc(b))});return this}OY(a){this.C.update(olympe.j.Ba(a));return this}Ru(a){T(this).Ru(a);return this}Tu(a){T(this).Tu(a);return this}Su(a,b){T(this).Su(a,b.valueOf());return this}Bb(a){T(this).Bb(a);return this}vb(a){T(this).vb(a);return this}rb(a){T(this).rb(a);return this}Od(a){T(this).Od(a);return this}lb(a){T(this).lb(olympe.j.
|
|
920
|
+
return this}Ed(a){olympe.j.Wa([a],b=>{this.Ne.update(olympe.j.hc(b))});return this}OY(a){this.C.update(olympe.j.Ba(a));return this}Ru(a){T(this).Ru(a);return this}Tu(a){T(this).Tu(a);return this}Su(a,b){T(this).Su(a,b.valueOf());return this}Bb(a){T(this).Bb(a);return this}vb(a){T(this).vb(a);return this}rb(a){T(this).rb(a);return this}Od(a){T(this).Od(a);return this}lb(a){T(this).lb(olympe.j.cg(a,b=>b.ei()));return this}Df(a=0,b=0,c=0,d=0){T(this).Df(a,b,c,d);return this}};
|
|
921
921
|
olympe.ui.F.jw.D={YS:1,gC:2};h=olympe.ui.F.jw.prototype;h.Jb.K=olympe.j.J.C([0]);h.Yd.K=olympe.j.J.C([0]);h.Ed.K=olympe.j.J.C([0]);h.OY.K=olympe.j.J.C([0]);h.Ru.K=olympe.j.J.C([0]);h.Tu.K=olympe.j.J.C([0]);h.Su.K=olympe.j.J.C([0]);h.Bb.K=olympe.j.J.C([0]);h.vb.K=olympe.j.J.C([0]);h.rb.K=olympe.j.J.C([0]);h.Od.K=olympe.j.J.C([0]);h.lb.K=olympe.j.J.C([0]);h.Df.K=olympe.j.J.C([0,1,2,3]);function lg(a,b){const c=new olympe.j.Map(olympe.j.aa),d=new olympe.j.Map(olympe.j.aa);a.D.forEach((f,g)=>{c.set(g,f.na().qa());d.set(g,f.na().ta())});const e=new olympe.ui.F.Xe(new olympe.j.ga(olympe.j.aa.max(c),olympe.j.aa.max(d)));olympe.j.Wa([a.C],f=>{e.mg();f=a.D.Hh(f);const g=new olympe.j.ga(e.Cd().ya(f.Cd()).Ua(2),e.Ce().ya(f.Ce()).Ua(2));e.appendChild(f,'displayedElement',g)});b.appendChild(e,'displayPort',olympe.ui.ha.Db.Sb)}
|
|
922
922
|
function mg(a,b){const c=new olympe.ui.F.Zd(a.R.wa().hb(2),a.R.wa()),d=new olympe.ui.F.Xe(new olympe.j.ga(b.Cd(),40));a.D.forEach((f,g)=>{const k=new olympe.ui.F.em(a.R.wa());k.Ld(1,Ac());olympe.j.$a(a.C.wa().Se(a.D.gf(g)),()=>{k.Ma(Ac())},()=>{k.Ma(Dc())});k.Vc(()=>{var l=olympe.j.Ba(a.D.Hm(g));olympe.j.Zb(l)?a.C.repeat(l):a.C.update(l)});c.appendChild(k,g,olympe.ui.ha.rc.Sc)});d.appendChild(c,'stepper',new olympe.j.ga(d.Cd().Ua(2).ya(c.Cd().Ua(2)),d.Ce().Ua(2).ya(c.Ce().Ua(2))));const e=new olympe.ui.F.jc;
|
|
923
923
|
e.Jb(olympe.j.$a(ng(a),()=>olympe.j.ic(a.ca),()=>olympe.j.ic('Next'),olympe.j.kb));e.Yd(!0,28);e.Ed(!0,8);e.Ma(N());e.Ld(1,Ac());e.Wb(5);e.vb('Roboto');e.ah(10);e.rd(a.T.wa().Re());e.Vc(()=>{olympe.j.ls([ng(a)],f=>{f.valueOf()&&a.Bm?a.Bm():(f=olympe.j.Qa(a.C).Sa(1).ox(a.D.aj()),olympe.j.Zb(f)?a.C.repeat(f):a.C.update(f))})});d.appendChild(e,'nextButton',new olympe.j.ga(d.Cd().ya(e.Cd()),d.Ce().Ua(2).ya(e.Ce().Ua(2))));b.appendChild(d,'c')}function ng(a){return a.C.wa().Se(a.D.Qc().ya(1))}
|
|
@@ -943,7 +943,7 @@ b=>{this.map.Cg(b.valueOf());this.mq({animate:!0})});olympe.j.Wa([this.na().ta()
|
|
|
943
943
|
this.longitude.update(olympe.j.Ba(b))});this.map.sx(b=>{const c=olympe.j.Qa(this.latitude.wa());(void 0===c||c.isNaN().valueOf()||.001<Math.abs(c.valueOf()-b))&&this.latitude.update(olympe.j.Ba(b))});this.O().appendChild(this.map,'map');this.map.Tb.onDestroy(()=>{this.D=!0})}Hs(a,b,c,d){this.map.Hs(a,b,c,d);return this.map}Is(a){olympe.j.Wa([a],b=>{this.C.update(b)});return this.map}R(){return this.C.wa()}ys(a){olympe.j.Wa([a],b=>{this.longitude.update(b)});return this.map}xs(a){olympe.j.Wa([a],b=>
|
|
944
944
|
{this.latitude.update(b)});return this.map}WD(){return this.longitude.wa()}UD(){return this.latitude.wa()}au(a,b,c){this.map.au(a,b,c);return this.map}Aw(a){this.map.Aw(a);return this.map}ps(a){this.D||this.map.ps(a);return this.map}xw(a,b){this.map.xw(a,b);return this.map}Iu(a){this.D||this.map.Iu(a);return this.map}pv(a,b){this.map.pv(a,b);return this.map}rv(a,b){this.map.rv(a,b);return this.map}tv(a,b){this.map.tv(a,b);return this.map}kv(a,b,c){this.map.kv(a,b,c);return this.map}hu(a,b){this.map.hu(a,
|
|
945
945
|
b);return this.map}iu(a){this.map.iu(a);return this.map}Gu(a,b){this.map.Gu(a,b);return this.map}Eu(a,b){this.map.Eu(a,b);return this.map}ju(a,b,c){this.map.ju(a,b,c);return this.map}ku(a,b){this.map.ku(a,b);return this.map}Zu(a){this.map.Zu(a);return this.map}bv(a){this.map.bv(a);return this.map}$u(a){this.map.$u(a);return this.map}Fu(a,b){this.map.Fu(a,b);return this.map}mq(a){this.map.mq(a);return this.map}stop(){this.map.stop();return this.map}appendChild(a,b,...c){Kf(this,a,b,...c);return this}removeChild(a){this.O().removeChild(a);
|
|
946
|
-
return this}};olympe.ui.Ta.Va.Map.prototype.R.K=olympe.j.J.D;olympe.ui.Ta.Va.Map.prototype.WD.K=olympe.j.J.D;olympe.ui.Ta.Va.Map.prototype.UD.K=olympe.j.J.D;olympe.ui.P={};olympe.ui.P.xi=class extends olympe.ui.F.mb{constructor(a){super(olympe.ui.Na.C(olympe.N.P.xi,olympe.host.ab.jb.aM),a);this.C=this.D=void 0}ay(a,b){this.D||Q(this,()=>{this.D=olympe.j.dd(0,0);this.C=olympe.j.dd();this.ra().ay(this.D.qa(),this.D.ta(),this.C.qa(),this.C.ta())});K(this.C,a);b&&K(this.C,b)}appendChild(a,b){this.ra().appendChild(a.ra(),b)}removeChild(a){this.ra().removeChild(a)}};olympe.ui.P.
|
|
946
|
+
return this}};olympe.ui.Ta.Va.Map.prototype.R.K=olympe.j.J.D;olympe.ui.Ta.Va.Map.prototype.WD.K=olympe.j.J.D;olympe.ui.Ta.Va.Map.prototype.UD.K=olympe.j.J.D;olympe.ui.P={};olympe.ui.P.xi=class extends olympe.ui.F.mb{constructor(a){super(olympe.ui.Na.C(olympe.N.P.xi,olympe.host.ab.jb.aM),a);this.C=this.D=void 0}ay(a,b){this.D||Q(this,()=>{this.D=olympe.j.dd(0,0);this.C=olympe.j.dd();this.ra().ay(this.D.qa(),this.D.ta(),this.C.qa(),this.C.ta())});K(this.C,a);b&&K(this.C,b)}appendChild(a,b){this.ra().appendChild(a.ra(),b)}removeChild(a){this.ra().removeChild(a)}};olympe.ui.P.ze=class extends olympe.ui.wf{constructor(a){super(a);this.hidden=null}yh(a){this.ra().yh(a)}Bs(a){this.ra().Bs(a)}rd(a){null===this.hidden&&Q(this,()=>{this.hidden=olympe.j.Wc(!1)});K(this.hidden,a);this.ra().rd(a);return this}es(){null===this.hidden&&Q(this,()=>{this.hidden=olympe.j.Wc(!1)});return this.hidden}};olympe.ui.P.ze.prototype.es.K=olympe.j.J.T;olympe.ui.P.yd=class extends olympe.ui.P.ze{constructor(a){super(a);this.O=this.D=this.position=void 0}ca(){return this.ra()}setPosition(a){this.position||Q(this,()=>{this.position=olympe.j.dd();this.ca().setPosition(this.position.qa(),this.position.ta())});K(this.position,a);return this}ae(){this.position||this.setPosition(new olympe.j.ga);return this.position}Gb(a){this.D||Q(this,()=>{this.D=olympe.j.dd();this.ca().Gb(this.D.qa(),this.D.ta())});K(this.D,a);return this}na(){this.D||this.Gb(new olympe.j.ga);
|
|
947
947
|
return this.D}setScale(a){this.O||Q(this,()=>{this.O=olympe.j.la();this.ca().setScale(this.O)});K(this.O,a);return this}jq(){this.O||this.setScale(olympe.j.la(1));return this.O}};olympe.ui.P.yd.prototype.ca.K=new olympe.j.J(()=>olympe.N.P.yd,[]);olympe.ui.P.yd.prototype.ae.K=olympe.j.J.W;olympe.ui.P.yd.prototype.na.K=olympe.j.J.W;olympe.ui.P.yd.prototype.jq.K=new olympe.j.J(()=>olympe.j.U0,[]);olympe.ui.P.mc=class extends olympe.ui.P.yd{constructor(a){super(a);this.C=this.wg=this.zg=this.strokeLinecap=this.da=this.ma=this.strokeWidth=this.strokeColor=this.fillColor=null}Hx(a){this.ra().Hx(a)}setFillColor(a){this.fillColor||Q(this,()=>{this.fillColor=olympe.j.qd();this.ra().cB(this.fillColor.Al(),this.fillColor.zl(),this.fillColor.ol(),this.fillColor.nl())});K(this.fillColor,a);return this}setStrokeColor(a){this.strokeColor||Q(this,()=>{this.strokeColor=olympe.j.qd();this.ra().jB(this.strokeColor.Al(),
|
|
948
948
|
this.strokeColor.zl(),this.strokeColor.ol(),this.strokeColor.nl())});K(this.strokeColor,a);return this}gv(a){this.strokeWidth||Q(this,()=>{this.strokeWidth=olympe.j.la();this.ra().gv(this.strokeWidth)});K(this.strokeWidth,a);return this}Yx(a){this.ma||Q(this,()=>{this.ma=olympe.j.Ab();this.ra().Yx(this.ma)});K(this.ma,a);return this}Xx(a){this.da||Q(this,()=>{this.da=olympe.j.la();this.ra().Xx(this.da)});K(this.da,a);return this}Zx(a){this.strokeLinecap||Q(this,()=>{this.strokeLinecap=olympe.j.Ab();
|
|
949
949
|
this.ra().Zx(this.strokeLinecap)});K(this.strokeLinecap,a);return this}vs(a){const b=c=>{this.ra().vs(c.lq())};a.Gh?jc(a,b):b(a);return this}ky(){this.ra().ky()}Vu(a){const b=c=>{this.ra().Vu(c.ra())};a.Gh?jc(a,b):b(a);return this}ly(){this.ra().ly()}Ox(a){olympe.j.Wa([a],b=>{this.ra().Ox(b.ra())});return this}my(){this.ra().my()}vw(a,b,c,d='linear',e='indefinite'){this.ra().vw(a,b,c,d,e)}rotate(a,b,c){this.ra().rotate(a,b,c);return this}iS(a,b={}){if(olympe.ui.Na.$())return this;this.C||(this.C=
|
|
@@ -955,11 +955,11 @@ b,c)}dj(a){return this.Da().dj(a)}Xo(a,b,c){return this.Da().Xo(a,b,c)}zq(a){ret
|
|
|
955
955
|
b,c)}za(a){this.qb().za(a)}Jm(){return this.qb().Jm()}cn(a){this.Da().cn(a)}vq(a){this.Da().vq(a)}wq(a){this.Da().wq(a)}El(a,b,c){return this.Da().El(a,b,c)}Qo(a,b,c){return this.Da().Qo(a,b,c)}Ro(a,b,c){return this.Da().Ro(a,b,c)}};olympe.ui.P.mc.Aa=[olympe.ui.X.nc,olympe.ui.X.Md];h=olympe.ui.P.mc.prototype;h.iS.K=olympe.j.J.C([]);h.hS.K=olympe.j.J.C([]);h.Bo.K=new olympe.j.J(()=>olympe.ui.X.MouseEvent,[]);h.Do.K=new olympe.j.J(()=>olympe.ui.X.MouseEvent,[]);
|
|
956
956
|
h.qk.K=new olympe.j.J(()=>olympe.ui.X.MouseEvent,[]);h.Co.K=new olympe.j.J(()=>olympe.ui.X.MouseEvent,[]);h.Km.K=new olympe.j.J(()=>olympe.ui.X.MouseEvent,[]);h.Lm.K=new olympe.j.J(()=>olympe.ui.X.MouseEvent,[]);h.Ih.K=olympe.j.J.T;h.Ym.K=olympe.j.J.T;h.Zm.K=olympe.j.J.T;h.Pm.K=new olympe.j.J(()=>olympe.ui.X.TouchEvent,[]);h.Qm.K=new olympe.j.J(()=>olympe.ui.X.TouchEvent,[]);h.Om.K=new olympe.j.J(()=>olympe.ui.X.TouchEvent,[]);h.Nm.K=new olympe.j.J(()=>olympe.ui.X.TouchEvent,[]);
|
|
957
957
|
h.Fo.K=new olympe.j.J(()=>olympe.ui.X.Uk,[]);h.Mm.K=new olympe.j.J(()=>olympe.ui.X.hk,[]);h.Ao.K=new olympe.j.J(()=>olympe.ui.X.MouseEvent,[]);h.Im.K=new olympe.j.J(()=>olympe.ui.X.MouseEvent,[]);h.sl.K=new olympe.j.J(()=>olympe.ui.X.GestureEvent,[]);h.xl.K=new olympe.j.J(()=>olympe.ui.X.GestureEvent,[]);h.tl.K=new olympe.j.J(()=>olympe.ui.X.GestureEvent,[]);h.Rm.K=new olympe.j.J(()=>olympe.ui.X.GestureEvent,[]);h.ul.K=new olympe.j.J(()=>olympe.ui.X.GestureEvent,[]);
|
|
958
|
-
h.wl.K=new olympe.j.J(()=>olympe.ui.X.GestureEvent,[]);h.vl.K=new olympe.j.J(()=>olympe.ui.X.GestureEvent,[]);olympe.ui.P.Qf=class extends olympe.ui.P.mc{constructor(){super(olympe.ui.Na.C(olympe.N.P.Qf,olympe.host.ab.jb.GL));this.absolute=void 0}lq(){return this.ra()}addElement(a,b){this.lq().addElement(a.ra(),b);return this}Hu(a){this.lq().Hu(a);return this}vx(){this.lq().vx();return this}Li(a){const b=this;this.absolute||Q(this,()=>{b.absolute=olympe.j.Wc();b.lq().Li(b.absolute)});K(this.absolute,a);return this}};olympe.ui.P.Eg=class extends olympe.ui.P.yd{constructor(a){super(a)}};function og(a){return a.value instanceof olympe.ui.P.Eg?a.value.ra():a.value}olympe.ui.P.W_=class{constructor(a){this.value=null;a&&this.Ff(a)}Ff(a){this.value=a}getValue(){return this.value}};olympe.ui.P.Nn=class extends olympe.ui.P.Eg{constructor(){super(olympe.ui.Na.C(olympe.N.P.Nn,olympe.host.ab.jb.HL));this.amount=void 0}C(){return this.ra()}wx(a){this.amount||Q(this,()=>{this.amount=olympe.j.la();this.C().wx(this.amount)});K(this.amount,a);return this}lf(a){const b=c=>{this.C().lf(og(c))};a.Gh?jc(a,b):b(a);return this}};olympe.ui.P.Nn.prototype.C.K=new olympe.j.J(()=>olympe.N.P.Nn,[]);olympe.ui.P.em=class extends olympe.ui.P.mc{constructor(){super(olympe.ui.Na.C(olympe.N.P.em,olympe.host.ab.jb.EL));this.R=void 0}T(){return this.ra()}setRadius(a){this.R||Q(this,()=>{this.R=olympe.j.la();this.T().setRadius(this.R)});K(this.R,a);return this}};olympe.ui.P.em.prototype.T.K=new olympe.j.J(()=>olympe.N.P.em,[]);olympe.ui.P.Wq=class extends olympe.ui.P.Eg{constructor(){super(olympe.ui.Na.C(olympe.N.P.Wq,olympe.host.ab.jb.IL));this.C=null}setMatrix(a){this.C||Q(this,()=>{this.C=olympe.j.ub(olympe.oa.bo);this.ra().setMatrix(this.C.getStringValue())});K(this.C,a);return this}lf(a){const b=c=>{this.ra().lf(og(c))};a.Gh?jc(a,b):b(a);return this}};olympe.ui.P.Rn=class extends olympe.ui.P.Eg{constructor(){super(olympe.ui.Na.C(olympe.N.P.Rn,olympe.host.ab.jb.JL));this.mode=void 0}Px(a){this.mode||Q(this,()=>{this.mode=olympe.j.Ab();this.ra().Px(this.mode)});K(this.mode,a);return this}lf(a){const b=c=>{this.ra().lf(og(c))};a.Gh?jc(a,b):b(a);return this}Lx(a){const b=c=>{this.ra().Lx(og(c))};a.Gh?jc(a,b):b(a);return this}};olympe.ui.P.Tn=class extends olympe.ui.P.mc{constructor(){super(olympe.ui.Na.C(olympe.N.P.Tn,olympe.host.ab.jb.FL));this.R=void 0}setRadius(a){const b=this;this.R||Q(this,()=>{b.R=olympe.j.dd();b.ra().setRadius(b.R.qa(),b.R.ta())});K(this.R,a);return this}};olympe.ui.P.Un=class extends olympe.ui.P.Eg{constructor(){super(olympe.ui.Na.C(olympe.N.P.Un,olympe.host.ab.jb.KL))}};olympe.ui.P.Eh=class extends olympe.ui.P.
|
|
958
|
+
h.wl.K=new olympe.j.J(()=>olympe.ui.X.GestureEvent,[]);h.vl.K=new olympe.j.J(()=>olympe.ui.X.GestureEvent,[]);olympe.ui.P.Qf=class extends olympe.ui.P.mc{constructor(){super(olympe.ui.Na.C(olympe.N.P.Qf,olympe.host.ab.jb.GL));this.absolute=void 0}lq(){return this.ra()}addElement(a,b){this.lq().addElement(a.ra(),b);return this}Hu(a){this.lq().Hu(a);return this}vx(){this.lq().vx();return this}Li(a){const b=this;this.absolute||Q(this,()=>{b.absolute=olympe.j.Wc();b.lq().Li(b.absolute)});K(this.absolute,a);return this}};olympe.ui.P.Eg=class extends olympe.ui.P.yd{constructor(a){super(a)}};function og(a){return a.value instanceof olympe.ui.P.Eg?a.value.ra():a.value}olympe.ui.P.W_=class{constructor(a){this.value=null;a&&this.Ff(a)}Ff(a){this.value=a}getValue(){return this.value}};olympe.ui.P.Nn=class extends olympe.ui.P.Eg{constructor(){super(olympe.ui.Na.C(olympe.N.P.Nn,olympe.host.ab.jb.HL));this.amount=void 0}C(){return this.ra()}wx(a){this.amount||Q(this,()=>{this.amount=olympe.j.la();this.C().wx(this.amount)});K(this.amount,a);return this}lf(a){const b=c=>{this.C().lf(og(c))};a.Gh?jc(a,b):b(a);return this}};olympe.ui.P.Nn.prototype.C.K=new olympe.j.J(()=>olympe.N.P.Nn,[]);olympe.ui.P.em=class extends olympe.ui.P.mc{constructor(){super(olympe.ui.Na.C(olympe.N.P.em,olympe.host.ab.jb.EL));this.R=void 0}T(){return this.ra()}setRadius(a){this.R||Q(this,()=>{this.R=olympe.j.la();this.T().setRadius(this.R)});K(this.R,a);return this}};olympe.ui.P.em.prototype.T.K=new olympe.j.J(()=>olympe.N.P.em,[]);olympe.ui.P.Wq=class extends olympe.ui.P.Eg{constructor(){super(olympe.ui.Na.C(olympe.N.P.Wq,olympe.host.ab.jb.IL));this.C=null}setMatrix(a){this.C||Q(this,()=>{this.C=olympe.j.ub(olympe.oa.bo);this.ra().setMatrix(this.C.getStringValue())});K(this.C,a);return this}lf(a){const b=c=>{this.ra().lf(og(c))};a.Gh?jc(a,b):b(a);return this}};olympe.ui.P.Rn=class extends olympe.ui.P.Eg{constructor(){super(olympe.ui.Na.C(olympe.N.P.Rn,olympe.host.ab.jb.JL));this.mode=void 0}Px(a){this.mode||Q(this,()=>{this.mode=olympe.j.Ab();this.ra().Px(this.mode)});K(this.mode,a);return this}lf(a){const b=c=>{this.ra().lf(og(c))};a.Gh?jc(a,b):b(a);return this}Lx(a){const b=c=>{this.ra().Lx(og(c))};a.Gh?jc(a,b):b(a);return this}};olympe.ui.P.Tn=class extends olympe.ui.P.mc{constructor(){super(olympe.ui.Na.C(olympe.N.P.Tn,olympe.host.ab.jb.FL));this.R=void 0}setRadius(a){const b=this;this.R||Q(this,()=>{b.R=olympe.j.dd();b.ra().setRadius(b.R.qa(),b.R.ta())});K(this.R,a);return this}};olympe.ui.P.Un=class extends olympe.ui.P.Eg{constructor(){super(olympe.ui.Na.C(olympe.N.P.Un,olympe.host.ab.jb.KL))}};olympe.ui.P.Eh=class extends olympe.ui.P.ze{constructor(a){super(a)}Bw(a,b){this.ra().Bw(a.ra(),b);return this}Lu(a){this.ra().Lu(a);return this}};olympe.ui.P.Nk=class extends olympe.ui.P.ze{constructor(a,b){super(olympe.ui.Na.C(olympe.N.P.Nk,olympe.host.ab.jb.OL));this.offset=olympe.j.la();this.C=olympe.j.qd();this.ra().Qx(this.offset);this.ra().iB(this.C.Al(),this.C.zl(),this.C.ol(),this.C.nl());void 0!==a&&K(this.offset,a);void 0!==b&&K(this.C,b)}Qx(a){K(this.offset,a);return this}};olympe.ui.P.dr=class extends olympe.ui.P.mc{constructor(){super(olympe.ui.Na.C(olympe.N.P.dr,olympe.host.ab.jb.PL))}appendChild(a,b){this.ra().appendChild(a.ra(),b);return this}removeChild(a){this.ra().removeChild(a);return this}};olympe.ui.P.Image=class extends olympe.ui.P.mc{constructor(){super(olympe.ui.Na.C(olympe.N.P.Image,olympe.host.ab.jb.QL));this.T=this.R=this.aspectRatio=this.source=void 0}ne(a){this.source||Q(this,()=>{this.source=olympe.j.Ab();this.ra().ne(this.source)});K(this.source,a);return this}Il(a){this.aspectRatio||Q(this,()=>{this.aspectRatio=olympe.j.Ab();this.ra().Il(this.aspectRatio)});K(this.aspectRatio,a);return this}Jl(a){this.R||Q(this,()=>{this.R=olympe.j.Ab();this.ra().Jl(this.R)});K(this.R,a);
|
|
959
959
|
return this}Nl(a){this.T||Q(this,()=>{this.T=olympe.j.Ab();this.ra().Nl(this.T)});K(this.T,a);return this}};olympe.ui.P.Pk=class extends olympe.ui.P.Eg{constructor(){super(olympe.ui.Na.C(olympe.N.P.Pk,olympe.host.ab.jb.LL));this.R=this.C=this.aspectRatio=this.source=void 0}ne(a){this.source||Q(this,()=>{this.source=olympe.j.Ab();this.ra().ne(this.source)});K(this.source,a);return this}Il(a){this.aspectRatio||Q(this,()=>{this.aspectRatio=olympe.j.Ab();this.ra().Il(this.aspectRatio)});K(this.aspectRatio,a);return this}Jl(a){this.C||Q(this,()=>{this.C=olympe.j.Ab();this.ra().Jl(this.C)});K(this.C,a);return this}Nl(a){this.R||
|
|
960
960
|
Q(this,()=>{this.R=olympe.j.Ab();this.ra().Nl(this.R)});K(this.R,a);return this}};olympe.ui.P.ni=class extends olympe.ui.P.Eh{constructor(){super(olympe.ui.Na.C(olympe.N.P.ni,olympe.host.ab.jb.RL));this.D=this.C=void 0}Rx(a){this.C||Q(this,function(){this.C=olympe.j.dd();this.ra().Rx(this.C.qa(),this.C.ta())}.bind(this));K(this.C,a);return this}Sx(a){this.D||Q(this,function(){this.D=olympe.j.dd();this.ra().Sx(this.D.qa(),this.D.ta())}.bind(this));K(this.D,a);return this}};olympe.ui.P.ao=class extends olympe.ui.P.yd{constructor(){super(olympe.ui.Na.C(olympe.N.P.ao,olympe.host.ab.jb.SL));this.absolute=void 0}appendChild(a,b){this.ra().appendChild(a.ra(),b);return this}removeChild(a){this.ra().removeChild(a);return this}Li(a){this.absolute||Q(this,()=>{this.absolute=olympe.j.Wc();this.ra().Li(this.absolute)});K(this.absolute,a);return this}};olympe.ui.P.co=class extends olympe.ui.P.Eg{constructor(){super(olympe.ui.Na.C(olympe.N.P.co,olympe.host.ab.jb.ML))}yw(a,b){const c=d=>{this.ra().lf(og(d),b)};a.Gh?jc(a,c):c(a);return this}Ju(a){this.ra().Ju(a);return this}};olympe.ui.P.Vk=class extends olympe.ui.P.Eg{constructor(){super(olympe.ui.Na.C(olympe.N.P.Vk,olympe.host.ab.jb.NL));this.offset=void 0}Fx(a){this.offset||Q(this,()=>{this.offset=olympe.j.dd();this.ra().Fx(this.offset.qa(),this.offset.ta())});K(this.offset,a);return this}lf(a){const b=c=>{this.ra().lf(og(c))};a.Gh?jc(a,b):b(a);return this}};olympe.ui.P.Yk=class extends olympe.ui.P.mc{constructor(){super(olympe.ui.Na.C(olympe.N.P.Yk,olympe.host.ab.jb.TL));this.R=this.T=void 0;this.W=1}zx(a){const b=this;this.T||Q(this,()=>{b.T=olympe.j.Wc();b.ra().zx(b.T)});K(this.T,a);return this}mh(a){const b=this;this.R||Q(this,()=>{b.R=olympe.j.Ab();b.ra().mh(b.R)});K(this.R,a);return this}Vp(a,b){this.ra().Vp(a.ra(),b);return this}Ku(a){this.ra().Ku(a);return this}moveTo(a){this.Vp(new olympe.ui.P.yz(a),'seg'+this.W++);return this}lineTo(a){this.Vp(new olympe.ui.P.xz(a),
|
|
961
|
-
'seg'+this.W++);return this}arcTo(a,b,c,d,e,f){this.Vp(new olympe.ui.P.Vi(a,b,c,d,e,f),'seg'+this.W++);return this}};olympe.ui.P.If=class extends olympe.ui.P.
|
|
962
|
-
a);return this}by(a){K(this.T,a);return this}Mx(a){K(this.D,a);return this}$x(a){K(this.R,a);return this}};olympe.ui.P.si=class extends olympe.ui.P.If{constructor(a,b,c){super(olympe.ui.Na.C(olympe.N.P.si,olympe.host.ab.jb.VL),a);this.C=olympe.j.dd();this.D=olympe.j.dd();this.ra().Bx(this.C.qa(),this.C.ta());this.ra().Cx(this.D.qa(),this.D.ta());b&&K(this.C,b);c&&K(this.D,c)}Bx(a){K(this.C,a);return this}Cx(a){K(this.D,a);return this}};olympe.ui.P.xz=class extends olympe.ui.P.If{constructor(a,b){super(olympe.ui.Na.C(olympe.N.P.xz,olympe.host.ab.jb.WL),a);this.C=null;void 0!==b&&this.rd(b)}rd(a){null===this.C&&this.C.Tb.destroy();this.C=this.ra().rd(a);return this}};olympe.ui.P.yz=class extends olympe.ui.P.If{constructor(a){super(olympe.ui.Na.C(olympe.N.P.yz,olympe.host.ab.jb.XL),a)}};olympe.ui.P.io=class extends olympe.ui.P.If{constructor(a,b){super(olympe.ui.Na.C(olympe.N.P.io,olympe.host.ab.jb.YL),a);this.C=olympe.j.dd();this.ra().Ax(this.C.qa(),this.C.ta());b&&K(this.C,b)}Ax(a){K(this.C,a);return this}};olympe.ui.P.ko=class extends olympe.ui.P.Eh{constructor(){super(olympe.ui.Na.C(olympe.N.P.ko,olympe.host.ab.jb.ZL));this.D=this.C=void 0}xx(a){this.C||Q(this,()=>{this.C=olympe.j.dd();this.ra().xx(this.C.qa(),this.C.ta())});K(this.C,a);return this}Jx(a){this.D||Q(this,()=>{this.D=olympe.j.dd();this.ra().Jx(this.D.qa(),this.D.ta())});K(this.D,a);return this}};olympe.ui.P.
|
|
961
|
+
'seg'+this.W++);return this}arcTo(a,b,c,d,e,f){this.Vp(new olympe.ui.P.Vi(a,b,c,d,e,f),'seg'+this.W++);return this}};olympe.ui.P.If=class extends olympe.ui.P.ze{constructor(a,b){super(a);this.position=olympe.j.dd();this.ra().setPosition(this.position.qa(),this.position.ta());b&&K(this.position,b)}setPosition(a){K(this.position,a);return this}ae(){return this.position}};olympe.ui.P.If.prototype.ae.K=olympe.j.J.W;olympe.ui.P.Vi=class extends olympe.ui.P.If{constructor(a,b,c,d,e,f){super(olympe.ui.Na.C(olympe.N.P.Vi,olympe.host.ab.jb.UL),a);this.O=olympe.j.la();this.C=olympe.j.la();this.T=olympe.j.la(0);this.D=olympe.j.Wc(!1);this.R=olympe.j.Wc(!1);this.ra().Tx(this.O);this.ra().Ux(this.C);this.ra().by(this.T);this.ra().Mx(this.D);this.ra().$x(this.R);void 0!==b&&(K(this.O,b),K(this.C,b));void 0!==c&&K(this.C,c);void 0!==d&&K(this.T,d);void 0!==e&&K(this.D,e);void 0!==f&&K(this.R,f)}Tx(a){K(this.O,a);return this}Ux(a){K(this.C,
|
|
962
|
+
a);return this}by(a){K(this.T,a);return this}Mx(a){K(this.D,a);return this}$x(a){K(this.R,a);return this}};olympe.ui.P.si=class extends olympe.ui.P.If{constructor(a,b,c){super(olympe.ui.Na.C(olympe.N.P.si,olympe.host.ab.jb.VL),a);this.C=olympe.j.dd();this.D=olympe.j.dd();this.ra().Bx(this.C.qa(),this.C.ta());this.ra().Cx(this.D.qa(),this.D.ta());b&&K(this.C,b);c&&K(this.D,c)}Bx(a){K(this.C,a);return this}Cx(a){K(this.D,a);return this}};olympe.ui.P.xz=class extends olympe.ui.P.If{constructor(a,b){super(olympe.ui.Na.C(olympe.N.P.xz,olympe.host.ab.jb.WL),a);this.C=null;void 0!==b&&this.rd(b)}rd(a){null===this.C&&this.C.Tb.destroy();this.C=this.ra().rd(a);return this}};olympe.ui.P.yz=class extends olympe.ui.P.If{constructor(a){super(olympe.ui.Na.C(olympe.N.P.yz,olympe.host.ab.jb.XL),a)}};olympe.ui.P.io=class extends olympe.ui.P.If{constructor(a,b){super(olympe.ui.Na.C(olympe.N.P.io,olympe.host.ab.jb.YL),a);this.C=olympe.j.dd();this.ra().Ax(this.C.qa(),this.C.ta());b&&K(this.C,b)}Ax(a){K(this.C,a);return this}};olympe.ui.P.ko=class extends olympe.ui.P.Eh{constructor(){super(olympe.ui.Na.C(olympe.N.P.ko,olympe.host.ab.jb.ZL));this.D=this.C=void 0}xx(a){this.C||Q(this,()=>{this.C=olympe.j.dd();this.ra().xx(this.C.qa(),this.C.ta())});K(this.C,a);return this}Jx(a){this.D||Q(this,()=>{this.D=olympe.j.dd();this.ra().Jx(this.D.qa(),this.D.ta())});K(this.D,a);return this}};olympe.ui.P.ye=class extends olympe.ui.P.mc{constructor(){super(olympe.ui.Na.C(olympe.N.P.ye,olympe.host.ab.jb.$L))}Wb(a){this.ra().Wb(a);return this}};olympe.ui.P.B1=class{constructor(){this.height=this.width=100;this.strokeWidth=1;this.strokeColor='rgb(0,0,0)';this.D='Arial,Helvetica';this.fontSize=12;this.C=this.path=''}Gb(a,b){this.width=a;this.height=b;return this}gv(a){this.strokeWidth=a}setStrokeColor(a,b,c,d){this.strokeColor=void 0===d?`rgb(${a},${b},${c})`:`rgba(${a},${b},${c},${d})`}moveTo(a,b){this.path+=`M${a} ${b}`;return this}lineTo(a,b){this.path+=`L${a} ${b}`;return this}vb(a){this.D=a;return this}rb(a){this.fontSize=a;return this}clear(){this.path=
|
|
963
963
|
this.C='';return this}toString(){var a='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 '+this.width+' '+this.height+'">';''!==this.C&&(a+='<g font-family="'+this.D+'" font-size="'+this.fontSize+'" stroke="none" fill="rgb(255,255,255)">'+this.C+'</g>');''!==this.path&&(a+='<path stroke-width="'+this.strokeWidth+'" stroke="'+this.strokeColor+'" d="'+this.path+'"/>');return a+'</svg>'}eF(){return'data:image/svg+xml,'+encodeURIComponent(this.toString())}};olympe.ui.P.vL=class extends olympe.ui.P.mc{constructor(a){super(a);this.text=null;this.$=this.W=this.T=this.fontSize=void 0;this.R=null}Jb(a){const b=this;this.text||Q(this,()=>{b.text=olympe.j.Ab();b.ra().Jb(b.text)});K(this.text,a);return this}Lj(){this.text||this.Jb('');return this.text}Gb(){return this}na(){this.R||Q(this,()=>{this.R=new olympe.j.ga(0,0);this.ra().fp((a,b)=>{this.R.oe(a);this.R.Fe(b)})});return this.R}rb(a){const b=this;this.fontSize||Q(this,()=>{b.fontSize=olympe.j.la();b.ra().rb(b.fontSize)});
|
|
964
964
|
K(this.fontSize,a);return this}vb(a){const b=this;this.T||Q(this,()=>{b.T=olympe.j.Ab();b.ra().vb(b.T)});K(this.T,a);return this}Bb(a){const b=this;this.W||Q(this,()=>{b.W=olympe.j.la();b.ra().Bb(b.W)});K(this.W,a);return this}Kx(a){const b=this;this.$||Q(this,()=>{b.$=olympe.j.Ab();b.ra().Kx(b.$)});K(this.$,a);return this}};olympe.ui.P.Text=class extends olympe.ui.P.vL{constructor(){super(olympe.ui.Na.C(olympe.N.P.Text,olympe.host.ab.jb.bM))}};olympe.ui.P.qw=class extends olympe.ui.P.vL{constructor(){super(olympe.ui.Na.C(olympe.N.P.qw,olympe.host.ab.jb.cM))}As(a){olympe.j.Wa([a],b=>{this.ra().As(b.ra())});return this}};olympe.ui.Zh={};olympe.ui.Zh.Cc=class{constructor(a,b,c=!1){this.V=a;this.T=b;this.ca=olympe.j.ub(olympe.ui.F.ea.vh,new olympe.ui.F.ea.My);this.ma=new olympe.j.Hz;this.za=new olympe.ui.F.pf(this);this.Pa=c}$(){return this.Pa}C(a,b){return Uc(this.T,a,b)}hf(){return this.za}ci(a){this.hf().ci(a);return this}D(){return this.ca}da(a){K(this.ca,a)}O(a){return Oc(this.ma,a)}R(a){Mc(this.ma,a)}Cb(){return this.V}Tm(a){a=this.T.C.get(a.vg().tD)||null;return null!==a&&'function'===typeof a.Tm?a.Tm():null}W(a,b){var c=[];
|
|
965
965
|
return(a=this.T.C.get(a.vg().tD)||null)&&'function'===typeof a[b]?a[b].call(a,...c):void 0}};olympe.ui.Zh.Cc.Aa=[olympe.ui.Cc];olympe.ui.ba={Ob:'ui.Manager',Vb:'ui.Logger',QS:'ui.MediaDeviceProvider'};olympe.ui.pa={NJ:'ui.noTooltips'};olympe.ui.Na=null;olympe.sa.$e(function(a){E(a,olympe.ui.pa.NJ,!1);C(a,olympe.ui.ba.Ob,[olympe.ui.ba.Vb,olympe.host.ba.Ob,new olympe.sa.zb(olympe.ui.pa.NJ)],(b,c,d)=>{null===olympe.ui.Na&&(olympe.ui.Na=new olympe.ui.Zh.Cc(b,c,d));return olympe.ui.Na},!0);C(a,olympe.ui.ba.Vb,[olympe.gb.ba.Ob],b=>b.Vg('ui'));B(a,olympe.ui.ba.QS,olympe.ui.media.Op)},'olympe.ui');
|
|
@@ -974,7 +974,7 @@ olympe.G.H.ui.La.Ic.prototype.unregisterTouchEnd=olympe.G.H.ui.La.Ic.prototype.H
|
|
|
974
974
|
olympe.G.H.ui.La.Ic.prototype.unregisterMouseLeave=olympe.G.H.ui.La.Ic.prototype.Tl;olympe.G.H.ui.La.Ic.prototype.registerMouseLeave=olympe.G.H.ui.La.Ic.prototype.ln;olympe.G.H.ui.La.Ic.prototype.unregisterMouseEnter=olympe.G.H.ui.La.Ic.prototype.Sl;olympe.G.H.ui.La.Ic.prototype.registerMouseEnter=olympe.G.H.ui.La.Ic.prototype.kn;olympe.G.H.ui.La.Ic.prototype.unregisterMouseOver=olympe.G.H.ui.La.Ic.prototype.Vl;olympe.G.H.ui.La.Ic.prototype.registerMouseOver=olympe.G.H.ui.La.Ic.prototype.nn;
|
|
975
975
|
olympe.G.H.ui.La.Ic.prototype.unregisterMouseMove=olympe.G.H.ui.La.Ic.prototype.Ul;olympe.G.H.ui.La.Ic.prototype.registerMouseMove=olympe.G.H.ui.La.Ic.prototype.mn;olympe.G.H.ui.La.Ic.prototype.unregisterMouseUp=olympe.G.H.ui.La.Ic.prototype.Wl;olympe.G.H.ui.La.Ic.prototype.registerMouseUp=olympe.G.H.ui.La.Ic.prototype.pn;olympe.G.H.ui.La.Ic.prototype.unregisterMouseDown=olympe.G.H.ui.La.Ic.prototype.Rl;olympe.G.H.ui.La.Ic.prototype.registerMouseDown=olympe.G.H.ui.La.Ic.prototype.jn;
|
|
976
976
|
olympe.G.H.ui.La.Ic.prototype.unregisterDoubleClick=olympe.G.H.ui.La.Ic.prototype.Ql;olympe.G.H.ui.La.Ic.prototype.registerDoubleClick=olympe.G.H.ui.La.Ic.prototype.hn;olympe.G.H.ui.La.Ic.prototype.unregisterClickOrTap=olympe.G.H.ui.La.Ic.prototype.Pl;olympe.G.H.ui.La.Ic.prototype.registerClickOrTap=olympe.G.H.ui.La.Ic.prototype.gn;olympe.G.H.ui.La.Ic.Aa=[olympe.N.X.nc];function tg(a){a.ma&&a.ma.$()}
|
|
977
|
-
olympe.G.H.ui.La.
|
|
977
|
+
olympe.G.H.ui.La.xe=class extends olympe.G.H.ui.La.Iv{constructor(a){super(a);this.ma=this.ca=this.da=this.W=this.$=this.T=this.R=this.O=this.D=null}ap(a){if(null===this.R){const b=(c,d)=>void 0!==d?this.O||this.T||Math.abs(d.deltaX)>Math.abs(d.deltaY):!1;this.R=new Hammer.Manager(this.C);this.R.add(new Hammer.Swipe({enable:b,event:'swipeh',direction:Hammer.DIRECTION_HORIZONTAL,threshold:100}));this.R.add(new Hammer.Pan({enable:b,event:'panv',direction:Hammer.DIRECTION_VERTICAL,threshold:100}));this.R.on('swipeh',
|
|
978
978
|
c=>{c.srcEvent.stopPropagation();'mouse'===c.pointerType&&tg(this);a(c.deltaX,c.deltaY,c.deltaTime,c.distance,c.angle,c.scale,c.velocityX,c.velocityY,c.rotation,c.center,c.isFirst,c.isFinal)})}}Bn(){this.R&&(this.R.off('swipeh'),this.R=null)}hp(a){if(null===this.T){const b=(c,d)=>void 0!==d?this.D||this.R||Math.abs(d.deltaY)>Math.abs(d.deltaX):!1;this.T=new Hammer.Manager(this.C);this.T.add(new Hammer.Pan({enable:b,event:'panh',direction:Hammer.DIRECTION_HORIZONTAL,threshold:100}));this.T.add(new Hammer.Swipe({enable:b,
|
|
979
979
|
event:'swipev',direction:Hammer.DIRECTION_VERTICAL,threshold:100}));this.T.on('swipev',c=>{c.srcEvent.stopPropagation();'mouse'===c.pointerType&&tg(this);a(c.deltaX,c.deltaY,c.deltaTime,c.distance,c.angle,c.scale,c.velocityX,c.velocityY,c.rotation,c.center,c.isFirst,c.isFinal)})}}Ln(){this.T&&(this.T.off('swipev'),this.T=null)}$o(a){if(null===this.D){const b=(d,e)=>void 0!==e?this.O||Math.abs(e.deltaX)>Math.abs(e.deltaY):!1;this.D=new Hammer.Manager(this.C);this.D.add(new Hammer.Pan({enable:b,event:'panh',
|
|
980
980
|
direction:Hammer.DIRECTION_HORIZONTAL,threshold:100}));this.D.add(new Hammer.Pan({enable:b,event:'panv',direction:Hammer.DIRECTION_VERTICAL,threshold:100}));let c=null;this.D.on('panh',d=>{d.srcEvent.stopPropagation();'mouse'===d.pointerType&&tg(this);null!==c&&clearTimeout(c);for(var e=document.querySelectorAll('.scroller'),f=0;f<e.length;f++)e[f].style.overflow=d.isFinal?'auto':'hidden';c=setTimeout(function(){for(var g=0;g<e.length;g++)e[g].style.overflow='auto',d.isFinal=!0,a(d.deltaX,d.deltaY,
|
|
@@ -984,9 +984,9 @@ d.velocityX,d.velocityY,d.rotation,d.center,d.isFirst,d.isFinal)},300);a(d.delta
|
|
|
984
984
|
c.center,c.isFirst,c.isFinal)}))}Cn(){this.$&&(this.$.off('press'),this.$=null)}Kq(a,b){if(null===this.W){this.W=new Hammer.Manager(this.C);this.W.add(new Hammer.Press({time:null!=b?b:250}));let c=!1;this.W.on('pressup',d=>{c=!0;d.srcEvent.stopPropagation();'mouse'===d.pointerType&&tg(this);a(d.deltaX,d.deltaY,d.deltaTime,d.distance,d.angle,d.scale,d.velocityX,d.velocityY,d.rotation,d.center,d.isFirst,d.isFinal)});this.W.on('press',d=>{c=!1;const e=()=>{this.C.removeEventListener('touchend',e);this.C.removeEventListener('mouseup',
|
|
985
985
|
e);c||a(d.deltaX,d.deltaY,d.deltaTime,d.distance,d.angle,d.scale,d.velocityX,d.velocityY,d.rotation,d.center,d.isFirst,d.isFinal)};this.C.addEventListener('touchend',e);this.C.addEventListener('mouseup',e)})}}Dn(){this.W&&(this.W.off('press'),this.W=null)}ep(a){null===this.da&&(this.da=new Hammer.Manager(this.C),this.da.add(new Hammer.Rotate),this.da.on('rotate',b=>{b.srcEvent.stopPropagation();'mouse'===b.pointerType&&tg(this);a(b.deltaX,b.deltaY,b.deltaTime,b.distance,b.angle,b.scale,b.velocityX,
|
|
986
986
|
b.velocityY,b.rotation,b.center,b.isFirst,b.isFinal)}))}Fn(){this.da&&(this.da.off('rotate'),this.da=null)}cp(a){null===this.ca&&(this.ca=new Hammer.Manager(this.C),this.ca.add(new Hammer.Pinch),this.ca.on('pinch',b=>{b.srcEvent.stopPropagation();'mouse'===b.pointerType&&tg(this);a(b.deltaX,b.deltaY,b.deltaTime,b.distance,b.angle,b.scale,b.velocityX,b.velocityY,b.rotation,b.center,b.isFirst,b.isFinal)}))}En(){this.ca&&(this.ca.off('pinch'),this.ca=null)}};
|
|
987
|
-
olympe.G.H.ui.La.
|
|
988
|
-
olympe.G.H.ui.La.
|
|
989
|
-
olympe.G.H.ui.La.
|
|
987
|
+
olympe.G.H.ui.La.xe.prototype.unregisterPinch=olympe.G.H.ui.La.xe.prototype.En;olympe.G.H.ui.La.xe.prototype.registerPinch=olympe.G.H.ui.La.xe.prototype.cp;olympe.G.H.ui.La.xe.prototype.unregisterRotate=olympe.G.H.ui.La.xe.prototype.Fn;olympe.G.H.ui.La.xe.prototype.registerRotate=olympe.G.H.ui.La.xe.prototype.ep;olympe.G.H.ui.La.xe.prototype.unregisterLongPressUp=olympe.G.H.ui.La.xe.prototype.Dn;olympe.G.H.ui.La.xe.prototype.unregisterLongPress=olympe.G.H.ui.La.xe.prototype.Cn;
|
|
988
|
+
olympe.G.H.ui.La.xe.prototype.registerLongPress=olympe.G.H.ui.La.xe.prototype.bp;olympe.G.H.ui.La.xe.prototype.unregisterVerticalPan=olympe.G.H.ui.La.xe.prototype.Kn;olympe.G.H.ui.La.xe.prototype.registerVerticalPan=olympe.G.H.ui.La.xe.prototype.gp;olympe.G.H.ui.La.xe.prototype.unregisterHorizontalPan=olympe.G.H.ui.La.xe.prototype.An;olympe.G.H.ui.La.xe.prototype.registerHorizontalPan=olympe.G.H.ui.La.xe.prototype.$o;olympe.G.H.ui.La.xe.prototype.unregisterVerticalSwipe=olympe.G.H.ui.La.xe.prototype.Ln;
|
|
989
|
+
olympe.G.H.ui.La.xe.prototype.registerVerticalSwipe=olympe.G.H.ui.La.xe.prototype.hp;olympe.G.H.ui.La.xe.prototype.unregisterHorizontalSwipe=olympe.G.H.ui.La.xe.prototype.Bn;olympe.G.H.ui.La.xe.prototype.registerHorizontalSwipe=olympe.G.H.ui.La.xe.prototype.ap;olympe.G.H.ui.La.xe.Aa=[olympe.N.X.Md];olympe.G.H.ui.La.Ri=class extends olympe.G.H.ui.La.Iv{constructor(a){super(a);this.R=this.D=this.O=null;this.height=this.width=-1}ns(a){null===this.O&&(this.O=b=>{b.stopPropagation();a()},this.addEventListener('focus',this.O,!1))}Os(){this.removeEventListener('focus',this.O);this.O=null}ms(a){null===this.D&&(this.D=b=>{b.stopPropagation();a()},this.addEventListener('blur',this.D,!1))}Ns(){this.removeEventListener('blur',this.D);this.D=null}os(a){const b=()=>{const d=parseInt(window.getComputedStyle(document.body,
|
|
990
990
|
null).getPropertyValue('padding-top')||0,10),e=parseInt(window.getComputedStyle(document.body,null).getPropertyValue('padding-bottom')||0,10);return window.innerHeight-d-e},c=()=>{const d=parseInt(window.getComputedStyle(document.body,null).getPropertyValue('padding-left')||0,10),e=parseInt(window.getComputedStyle(document.body,null).getPropertyValue('padding-right')||0,10);return window.innerWidth-d-e};null===this.R&&(0>this.width&&(this.width=c()),0>this.height&&(this.height=b()),this.R=()=>{this.width=
|
|
991
991
|
c();this.height=b();a(this.width,this.height)},a(this.width,this.height),window.addEventListener('resize',this.R))}Ps(){this.removeEventListener('resize',this.R,!1);this.R=null}};olympe.G.H.ui.La.Ri.prototype.unregisterSize=olympe.G.H.ui.La.Ri.prototype.Ps;olympe.G.H.ui.La.Ri.prototype.registerSize=olympe.G.H.ui.La.Ri.prototype.os;olympe.G.H.ui.La.Ri.prototype.unregisterBlur=olympe.G.H.ui.La.Ri.prototype.Ns;olympe.G.H.ui.La.Ri.prototype.registerBlur=olympe.G.H.ui.La.Ri.prototype.ms;
|
|
992
992
|
olympe.G.H.ui.La.Ri.prototype.unregisterFocus=olympe.G.H.ui.La.Ri.prototype.Os;olympe.G.H.ui.La.Ri.prototype.registerFocus=olympe.G.H.ui.La.Ri.prototype.ns;olympe.G.H.ui.La.Ri.Aa=[olympe.N.X.Si];olympe.G.H.ui.F={};let ug,vg=null;function wg(){vg||(vg=new olympe.G.H.ui.F.YQ);return vg}function xg(a,b,c,d){const e=b.va();e.id||(e.id='o'+b.uid);b='#'+e.id+c;d=b+'{'+d+'}';void 0!==a.C[b]&&a.D.deleteRule(a.C[b]);a.C[b]=a.D.cssRules.length;a.D.insertRule(d,a.C[b])}function yg(a,b,c){switch(ug){case 'webkit':xg(a,b,'::-webkit-input-placeholder',c);break;case 'moz':xg(a,b,'::-moz-placeholder',c);break;case 'ms':xg(a,b,':-ms-input-placeholder',c);break;default:xg(a,b,'::input-placeholder',c)}}
|
|
@@ -996,7 +996,7 @@ a)}Tm(){return this.ca}Ma(a){this.ib('backgroundColor',a)}IE(a,b,c,d){this.ib('b
|
|
|
996
996
|
case olympe.ui.ha.df.Sb:a='center center';break;case olympe.ui.ha.df.UF:a='right center';break;case olympe.ui.ha.df.$l:a='left bottom';break;case olympe.ui.ha.df.zh:a='center bottom';break;case olympe.ui.ha.df.Ts:a='right bottom';break;case olympe.ui.ha.df.xm:a='left top';break;default:a=this.ma+'px '+this.ma+'px'}this.ib('backgroundPosition',a)}kp(a){this.kc=a;switch(a){case olympe.ui.ha.Ah.Us:a='contain';break;case olympe.ui.ha.Ah.Vs:a='cover';break;case olympe.ui.ha.Ah.Qs:a='auto';break;default:a=
|
|
997
997
|
this.Ha&&this.Ka?this.Ha+'px '+this.Ka+'px':'auto'}this.ib('backgroundSize',a)}ss(a,b){this.Ha=a;this.Ka=b;this.kp(this.kc)}rs(a=0){this.ma=a;this.Lq(this.qc)}yn(){this.va().blur()}mj(a=!0){this.va().focus({preventScroll:a})}rd(a){this.ib('display',a?'none':'initial')}Gs(a){'number'===typeof a?this.setAttribute('tabIndex',a.toString()):this.removeAttribute('tabIndex')}yh(a){this.ib('pointer-events',a?'none':'auto')}Uu(a){a||null!==this.W?a&&null!==this.W&&(this.ca.removeEventListener('contextmenu',
|
|
998
998
|
this.W),this.W=null):(this.W=b=>{b.preventDefault()},this.ca.addEventListener('contextmenu',this.W,!1))}destroy(){for(const a of this.R.values())a();this.R.clear();this.wg=this.Oa=this.zg=this.R=null;Bg(this)}setAttribute(a,b){this.va().setAttribute(a,b)}removeAttribute(a){this.va().removeAttribute(a)}va(){return this.ca}ib(a,b){this.va().style[a]=b.toString()}BA(){return this.va().style[void 0]}ws(a){a&&'string'===typeof a?this.setAttribute('id',a):this.removeAttribute('id')}Da(){this.zg||(this.zg=
|
|
999
|
-
new olympe.G.H.ui.La.Ic(this.va()),this.wg&&(this.wg.ma=this.zg));return this.zg}qb(){this.wg||(this.wg=new olympe.G.H.ui.La.
|
|
999
|
+
new olympe.G.H.ui.La.Ic(this.va()),this.wg&&(this.wg.ma=this.zg));return this.zg}qb(){this.wg||(this.wg=new olympe.G.H.ui.La.xe(this.va()),this.zg&&(this.wg.ma=this.zg));return this.wg}kq(){this.Oa||(this.Oa=new olympe.G.H.ui.La.Ri(this.va()));return this.Oa}gn(a){this.ib('cursor','pointer');U(this,'clickOrTap',this.Pl.bind(this));return this.Da().gn(a)}Pl(){this.ib('cursor','default');W(this,'clickOrTap');return this.Da().Pl()}hn(a){U(this,'doubleClick',this.Ql.bind(this));return this.Da().hn(a)}Ql(){W(this,
|
|
1000
1000
|
'doubleClick');return this.Da().Ql()}jn(a){U(this,'mouseDown',this.Rl.bind(this));return this.Da().jn(a)}Rl(){W(this,'mouseDown');return this.Da().Rl()}pn(a){U(this,'mouseUp',this.Wl.bind(this));return this.Da().pn(a)}Wl(){W(this,'mouseUp');return this.Da().Wl()}mn(a){U(this,'mouseMove',this.Ul.bind(this));return this.Da().mn(a)}Ul(){W(this,'mouseMove');return this.Da().Ul()}nn(a){U(this,'mouseOver',this.Vl.bind(this));return this.Da().nn(a)}Vl(){W(this,'mouseOver');return this.Da().Vl()}kn(a){U(this,
|
|
1001
1001
|
'mouseEnter',this.Sl.bind(this));return this.Da().kn(a)}Sl(){W(this,'mouseEnter');return this.Da().Sl()}ln(a){U(this,'mouseLeave',this.Tl.bind(this));return this.Da().ln(a)}Tl(){W(this,'mouseLeave');return this.Da().Tl()}qn(a){U(this,'mouseWheel',this.Xl.bind(this));return this.Da().qn(a)}Xl(){W(this,'mouseWheel');return this.Da().Xl()}un(a){U(this,'touchStart',this.Jn.bind(this));return this.Da().un(a)}Jn(){W(this,'touchStart');return this.Da().Jn()}sn(a){U(this,'touchEnd',this.Hn.bind(this));return this.Da().sn(a)}Hn(){W(this,
|
|
1002
1002
|
'touchEnd');return this.Da().Hn()}tn(a){U(this,'touchMove',this.In.bind(this));return this.Da().tn(a)}In(){W(this,'touchMove');return this.Da().In()}rn(a){U(this,'touchCancel',this.Gn.bind(this));return this.Da().rn(a)}Gn(){W(this,'touchCancel');return this.Da().Gn()}ap(a){U(this,'hSwipe',this.Bn.bind(this));return this.qb().ap(a)}Bn(){W(this,'hSwipe');return this.qb().Bn()}hp(a){U(this,'vSwipe',this.Ln.bind(this));return this.qb().hp(a)}Ln(){W(this,'vSwipe');return this.qb().Ln()}$o(a){U(this,'hPan',
|
|
@@ -1147,25 +1147,25 @@ function $g(a,b,c){const d='videoinput'===b?'Camera ':'Microphone ';void 0===nav
|
|
|
1147
1147
|
olympe.G.H.ui.media.ck.prototype.getAllVideoInputDevices=olympe.G.H.ui.media.ck.prototype.Rw;olympe.G.H.ui.media.ck.prototype.destroy=olympe.G.H.ui.media.ck.prototype.destroy;olympe.G.H.ui.media.ck.bc=null;olympe.host.Xc.register(olympe.host.ab.jb.CJ,olympe.G.H.ui.media.ck);olympe.G.H.ui.media.ck.Aa=[olympe.N.media.Op];olympe.G.H.ui.media.pt=class extends olympe.G.H.ui.media.hr{constructor(a,b){super(a,b);this.url=null}$(a){a.ne(this.url||'')}ca(a){a.ne('')}Hk(a){this.url=a}le(){return this.url}};olympe.G.H.ui.media.pt.prototype.getUrl=olympe.G.H.ui.media.pt.prototype.le;olympe.G.H.ui.media.pt.prototype.setUrl=olympe.G.H.ui.media.pt.prototype.Hk;olympe.host.Xc.register(olympe.host.ab.jb.DJ,olympe.G.H.ui.media.pt);olympe.G.H.ui.media.pt.Aa=[olympe.N.media.MediaStream];function Yg(a){return{audio:a.T?a.D:!1,video:a.W?a.C:!1}}function Xg(a){a.C={facingMode:{exact:'environment'}}}olympe.G.H.ui.media.ZQ=class{constructor(){this.T=!0;this.D={};this.W=!0;this.C={};this.O=this.R=null}Ou(a){this.T=a}hv(a){this.W=a}};olympe.G.H.ui.media.bc={};olympe.G.H.ui.media.bc.gr=class extends olympe.G.H.ui.wf{constructor(a,b){super(a,b)}destroy(){}bb(){}ov(){}};olympe.G.H.ui.media.bc.gr.prototype.getName=olympe.G.H.ui.media.bc.gr.prototype.bb;olympe.G.H.ui.media.bc.gr.prototype.destroy=olympe.G.H.ui.media.bc.gr.prototype.destroy;olympe.G.H.ui.media.bc.gr.Aa=[olympe.N.media.bc.Np];olympe.G.H.ui.media.bc.Ap=class extends olympe.G.H.ui.media.bc.gr{constructor(a,b){super(a,b);this.name=this.id=''}lp(a,b){this.id=a;this.name=b}bb(){return this.name}ov(a){var b=this.id;a.O=b;switch(b){case olympe.ui.ha.Lp.qG:a.D={};break;default:a.D={deviceId:{exact:b}}}}};olympe.G.H.ui.media.bc.Ap.prototype.updateConstraints=olympe.G.H.ui.media.bc.Ap.prototype.ov;olympe.G.H.ui.media.bc.Ap.prototype.getName=olympe.G.H.ui.media.bc.Ap.prototype.bb;
|
|
1148
1148
|
olympe.G.H.ui.media.bc.Ap.prototype.setIdAndName=olympe.G.H.ui.media.bc.Ap.prototype.lp;olympe.host.Xc.register(olympe.host.ab.jb.AJ,olympe.G.H.ui.media.bc.Ap);olympe.G.H.ui.media.bc.Ap.Aa=[olympe.N.media.bc.op];olympe.G.H.ui.media.bc.Ip=class extends olympe.G.H.ui.media.bc.gr{constructor(a,b){super(a,b);this.name=this.id=''}lp(a,b){this.id=a;this.name=b}bb(){return this.name}ov(a){var b=this.id;a.R=b;switch(b){case olympe.ui.ha.Lp.JG:a.C={facingMode:'user'};break;case olympe.ui.ha.Lp.rG:Xg(a);break;case olympe.ui.ha.Lp.CG:Xg(a);break;default:a.C={deviceId:{exact:b}}}}};olympe.G.H.ui.media.bc.Ip.prototype.updateConstraints=olympe.G.H.ui.media.bc.Ip.prototype.ov;
|
|
1149
1149
|
olympe.G.H.ui.media.bc.Ip.prototype.getName=olympe.G.H.ui.media.bc.Ip.prototype.bb;olympe.G.H.ui.media.bc.Ip.prototype.setIdAndName=olympe.G.H.ui.media.bc.Ip.prototype.lp;olympe.host.Xc.register(olympe.host.ab.jb.EJ,olympe.G.H.ui.media.bc.Ip);olympe.G.H.ui.media.bc.Ip.Aa=[olympe.N.media.bc.Am];olympe.G.H.ui.Ta={};olympe.G.H.ui.Ta.Va={};function ah(a){var b=document.createElement('link');b.rel='stylesheet';b.type='text/css';b.href='https://unpkg.com/leaflet@1.7.1/dist/leaflet.css';document.head.appendChild(b);b=document.createElement('script');b.type='text/javascript';b.src='https://unpkg.com/leaflet@1.7.1/dist/leaflet.js';b.id='LEAFLET';b.onload=a;document.body.appendChild(b)}
|
|
1150
|
-
olympe.G.H.ui.Ta.Va.Map=class extends olympe.G.H.ui.F.rg{constructor(a,b){super(a,b);this.map=null;this.da=[];this.C=!1;this.O=new Map;this.D=new Map;this.T={};a=document.createElement('div');this.za=olympe.oa.IM('leafletMap');a.id=this.za;a.style.height='100%';this.va().appendChild(a);this.yO()}
|
|
1150
|
+
olympe.G.H.ui.Ta.Va.Map=class extends olympe.G.H.ui.F.rg{constructor(a,b){super(a,b);this.map=null;this.da=[];this.C=!1;this.O=new Map;this.D=new Map;this.T={};a=document.createElement('div');this.za=olympe.oa.IM('leafletMap');a.id=this.za;a.style.height='100%';this.va().appendChild(a);this.yO()}ue(a){this.da.push(a);this.C&&a()}yO(){ah(()=>{this.map=window.L.map(this.za);this.C=!0;this.da.forEach(a=>a())})}Hs(a,b,c,d){this.C?this.map.setView({lon:a,lat:b},c,d):this.ue(this.Hs.bind(this,a,b,c,d));
|
|
1151
1151
|
return this}pv(a,b){var c=()=>{switch(a){case olympe.N.Ta.Va.Map.C.zJ:return void 0===b&&(this.V.warn('No layer style provided. Defaulting to "streets-v11"'),b='streets-v11'),{url:'https://api.mapbox.com/styles/v1/mapbox/{id}/tiles/{z}/{x}/{y}?access_token={accessToken}',options:{attributionControl:!1,maxZoom:18,id:b,accessToken:'pk.eyJ1Ijoib2x5bXBlIiwiYSI6ImNqaXB5ZHU2dzA5azMzd252OWpsOTl6bmMifQ.8WQkMAXowdeuNj4x34NYfA',tileSize:512,zoomOffset:-1}};case olympe.N.Ta.Va.Map.C.kT:return{url:'https://{s}.tile.opentopomap.org/{z}/{x}/{y}.png',
|
|
1152
|
-
options:{maxZoom:16}};default:return{url:'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',options:{}}}};this.C?(c=c(),this.map.removeLayer(this.T),this.T=window.L.tileLayer(c.url,c.options),this.T.addTo(this.map),this.T.on('tileerror',()=>{this.V.error('Failed to fetch tile.')})):this.
|
|
1153
|
-
{window.L.marker({lon:b.WD(),lat:b.UD()}).addTo(this.map)}):this.
|
|
1154
|
-
(this.D.get(a).remove(),this.D.delete(a));return this}Is(a,b){this.C?this.map.setZoom(a,b):this.
|
|
1155
|
-
a));return this}tx(a){this.C?this.map.addEventListener('moveend',function(){a(this.map.getCenter().lng)}.bind(this)):this.
|
|
1156
|
-
a,b,c));return this}hu(a,b){this.C?this.map.fitBounds(a,b):this.
|
|
1157
|
-
this.map.setMaxBounds(a):this.
|
|
1152
|
+
options:{maxZoom:16}};default:return{url:'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',options:{}}}};this.C?(c=c(),this.map.removeLayer(this.T),this.T=window.L.tileLayer(c.url,c.options),this.T.addTo(this.map),this.T.on('tileerror',()=>{this.V.error('Failed to fetch tile.')})):this.ue(this.pv.bind(this,a,b));return this}au(a,b,c){this.C?(this.O.has(c)&&this.ps(c),a=window.L.marker({lon:a,lat:b}).addTo(this.map),this.O.set(c,a)):this.ue(this.au.bind(this,a,b,c));return this}Aw(a){this.C?a.forEach(b=>
|
|
1153
|
+
{window.L.marker({lon:b.WD(),lat:b.UD()}).addTo(this.map)}):this.ue(this.Aw.bind(this,a));return this}ps(a){this.O.has(a)&&(this.O.get(a).remove(),this.O.delete(a));return this}xw(a,b){this.C?(this.D.has(b)&&this.Iu(b),a=window.L.geoJSON(a,{style:c=>c.properties&&c.properties.style,q3:(c,d)=>{c.properties&&c.properties.tY&&d.H2(c.properties.tY)},t3:(c,d)=>window.L.circleMarker(d,c.properties.style)}).addTo(this.map),this.D.set(b,a)):this.ue(this.xw.bind(this,a,b));return this}Iu(a){this.D.has(a)&&
|
|
1154
|
+
(this.D.get(a).remove(),this.D.delete(a));return this}Is(a,b){this.C?this.map.setZoom(a,b):this.ue(this.Is.bind(this,a,b));return this.map}ux(a){this.C?this.map.addEventListener('zoom',function(){a(this.map.getZoom())}.bind(this)):this.ue(this.ux.bind(this,a))}ys(a){this.C?this.map.setView({lon:a,lat:this.map.getCenter().lat},this.map.getZoom()):this.ue(this.ys.bind(this,a));return this}xs(a){this.C?this.map.setView({lon:this.map.getCenter().lng,lat:a},this.map.getZoom()):this.ue(this.xs.bind(this,
|
|
1155
|
+
a));return this}tx(a){this.C?this.map.addEventListener('moveend',function(){a(this.map.getCenter().lng)}.bind(this)):this.ue(this.tx.bind(this,a))}sx(a){this.C?this.map.addEventListener('moveend',function(){a(this.map.getCenter().lat)}.bind(this)):this.ue(this.sx.bind(this,a))}rv(a,b){this.C?this.map.zoomIn(a,b):this.ue(this.rv.bind(this,a,b));return this}tv(a,b){this.C?this.map.zoomOut(a,b):this.ue(this.tv.bind(this,a,b));return this}kv(a,b,c){this.C?this.map.setZoomAround(a,b,c):this.ue(this.kv.bind(this,
|
|
1156
|
+
a,b,c));return this}hu(a,b){this.C?this.map.fitBounds(a,b):this.ue(this.hu.bind(this,a,b));return this}iu(a){this.C?this.map.fitWorld(a):this.ue(this.iu.bind(this,a));return this}Gu(a,b){this.C?this.map.panTo(a,b):this.ue(this.Gu.bind(this,a,b));return this}Eu(a,b){this.C?this.map.panBy(a,b):this.ue(this.Eu.bind(this,a,b));return this}ju(a,b,c){this.C?this.map.flyTo(a,b,c):this.ue(this.ju.bind(this,a,b,c));return this}ku(a,b){this.C?this.map.flyToBounds(a,b):this.ue(this.ku.bind(this,a,b));return this}Zu(a){this.C?
|
|
1157
|
+
this.map.setMaxBounds(a):this.ue(this.Zu.bind(this,a));return this}bv(a){this.C?this.map.setMinZoom(a):this.ue(this.bv.bind(this,a));return this}$u(a){this.C?this.map.setMaxZoom(a):this.ue(this.$u.bind(this,a));return this}Fu(a,b){this.C?this.map.panInsideBounds(a,b):this.ue(this.Fu.bind(this,a,b));return this}mq(a){this.C?this.map.invalidateSize(a):this.ue(this.mq.bind(this,a));return this}stop(){this.C?this.map.stop():this.ue(this.stop.bind(this));return this}};
|
|
1158
1158
|
olympe.G.H.ui.Ta.Va.Map.prototype.stop=olympe.G.H.ui.Ta.Va.Map.prototype.stop;olympe.G.H.ui.Ta.Va.Map.prototype.invalidateSize=olympe.G.H.ui.Ta.Va.Map.prototype.mq;olympe.G.H.ui.Ta.Va.Map.prototype.panInsideBounds=olympe.G.H.ui.Ta.Va.Map.prototype.Fu;olympe.G.H.ui.Ta.Va.Map.prototype.setMaxZoom=olympe.G.H.ui.Ta.Va.Map.prototype.$u;olympe.G.H.ui.Ta.Va.Map.prototype.setMinZoom=olympe.G.H.ui.Ta.Va.Map.prototype.bv;olympe.G.H.ui.Ta.Va.Map.prototype.setMaxBounds=olympe.G.H.ui.Ta.Va.Map.prototype.Zu;
|
|
1159
1159
|
olympe.G.H.ui.Ta.Va.Map.prototype.flyToBounds=olympe.G.H.ui.Ta.Va.Map.prototype.ku;olympe.G.H.ui.Ta.Va.Map.prototype.flyTo=olympe.G.H.ui.Ta.Va.Map.prototype.ju;olympe.G.H.ui.Ta.Va.Map.prototype.panBy=olympe.G.H.ui.Ta.Va.Map.prototype.Eu;olympe.G.H.ui.Ta.Va.Map.prototype.panTo=olympe.G.H.ui.Ta.Va.Map.prototype.Gu;olympe.G.H.ui.Ta.Va.Map.prototype.fitWorld=olympe.G.H.ui.Ta.Va.Map.prototype.iu;olympe.G.H.ui.Ta.Va.Map.prototype.fitBounds=olympe.G.H.ui.Ta.Va.Map.prototype.hu;
|
|
1160
1160
|
olympe.G.H.ui.Ta.Va.Map.prototype.setZoomAround=olympe.G.H.ui.Ta.Va.Map.prototype.kv;olympe.G.H.ui.Ta.Va.Map.prototype.zoomOut=olympe.G.H.ui.Ta.Va.Map.prototype.tv;olympe.G.H.ui.Ta.Va.Map.prototype.zoomIn=olympe.G.H.ui.Ta.Va.Map.prototype.rv;olympe.G.H.ui.Ta.Va.Map.prototype.registerLatitudeCallback=olympe.G.H.ui.Ta.Va.Map.prototype.sx;olympe.G.H.ui.Ta.Va.Map.prototype.registerLongitudeCallback=olympe.G.H.ui.Ta.Va.Map.prototype.tx;olympe.G.H.ui.Ta.Va.Map.prototype.setLatitude=olympe.G.H.ui.Ta.Va.Map.prototype.xs;
|
|
1161
1161
|
olympe.G.H.ui.Ta.Va.Map.prototype.setLongitude=olympe.G.H.ui.Ta.Va.Map.prototype.ys;olympe.G.H.ui.Ta.Va.Map.prototype.registerZoomCallback=olympe.G.H.ui.Ta.Va.Map.prototype.ux;olympe.G.H.ui.Ta.Va.Map.prototype.setZoom=olympe.G.H.ui.Ta.Va.Map.prototype.Is;olympe.G.H.ui.Ta.Va.Map.prototype.removeGeoJson=olympe.G.H.ui.Ta.Va.Map.prototype.Iu;olympe.G.H.ui.Ta.Va.Map.prototype.setView=olympe.G.H.ui.Ta.Va.Map.prototype.Hs;olympe.G.H.ui.Ta.Va.Map.prototype.initMap=olympe.G.H.ui.Ta.Va.Map.prototype.yO;
|
|
1162
|
-
olympe.G.H.ui.Ta.Va.Map.prototype.onLoad=olympe.G.H.ui.Ta.Va.Map.prototype.
|
|
1162
|
+
olympe.G.H.ui.Ta.Va.Map.prototype.onLoad=olympe.G.H.ui.Ta.Va.Map.prototype.ue;olympe.host.Xc.register(olympe.host.ab.jb.pL,olympe.G.H.ui.Ta.Va.Map);olympe.G.H.ui.Ta.Va.Map.Aa=[olympe.N.Ta.Va.Map];olympe.G.H.ui.P={};olympe.G.H.ui.P.hd={Ke:{Gf:'http://www.w3.org/2000/svg',xZ:'http://www.w3.org/2000/xmlns/',rB:'http://www.w3.org/1999/xlink'},Dg:'default'};olympe.G.H.ui.P.Qi=class extends olympe.G.H.ui.F.fc{constructor(a,b){super(a,b,document.createElementNS(olympe.G.H.ui.P.hd.Ke.Gf,'svg'));this.C=null;this.children=new Map;this.va().setAttribute('xmlns',olympe.G.H.ui.P.hd.Ke.Gf);this.va().setAttributeNS(olympe.G.H.ui.P.hd.Ke.xZ,'xmlns:xlink',olympe.G.H.ui.P.hd.Ke.rB);this.va().addEventListener('focus',()=>{});Jg(this,()=>{for(const c of this.children.values())c.Pf(this)});Kg(this,()=>{for(const c of this.children.values())c.Pf(null)})}uk(){null===
|
|
1163
1163
|
this.C&&(this.C=this.va().insertBefore(document.createElementNS(olympe.G.H.ui.P.hd.Ke.Gf,'defs'),this.va().firstChild));return this.C}ay(a,b,c,d){this.setAttribute('viewBox',a+' '+b+' '+c+' '+d)}appendChild(a,b){b=null!=b?b:olympe.G.H.ui.P.hd.Dg;this.children.has(b)&&this.removeChild(b);this.children.set(b,a);a.setAttribute('name_As_A_Child',b);this.va().appendChild(a.va());a.Ef(this);a.Pf(this)}removeChild(a){a||(a=olympe.G.H.ui.P.hd.Dg);const b=this.children.get(a);if(b)try{this.va().removeChild(b.va()),
|
|
1164
1164
|
b.Ef(null),b.Pf(null)}catch(c){this.V.debug('Not able to remove a child, has probably already been removed')}finally{this.children.delete(a)}else this.V.debug('Trying to remove a non existing child: '+a)}$w(){return this.va().outerHTML}TD(){return'data:image/svg+xml;utf8,'+this.$w()}};olympe.G.H.ui.P.Qi.prototype.getImageUrl=olympe.G.H.ui.P.Qi.prototype.TD;olympe.G.H.ui.P.Qi.prototype.getImageContent=olympe.G.H.ui.P.Qi.prototype.$w;olympe.G.H.ui.P.Qi.prototype.removeChild=olympe.G.H.ui.P.Qi.prototype.removeChild;
|
|
1165
1165
|
olympe.G.H.ui.P.Qi.prototype.appendChild=olympe.G.H.ui.P.Qi.prototype.appendChild;olympe.G.H.ui.P.Qi.prototype.setViewbox=olympe.G.H.ui.P.Qi.prototype.ay;olympe.G.H.ui.P.Qi.prototype.getSvgDefsElement=olympe.G.H.ui.P.Qi.prototype.uk;olympe.host.Xc.register(olympe.host.ab.jb.aM,olympe.G.H.ui.P.Qi);olympe.G.H.ui.P.Qi.Aa=[olympe.N.P.xi];olympe.G.H.ui.P.Je=class extends olympe.G.H.ui.wf{constructor(a,b,c){super(a,b);this.C=c;this.W=this.parent=null;this.id='';this.C&&this.Bs('auto')}va(){return this.C}uk(){return this.W?this.W.uk():null}setAttribute(a,b,c){c?this.va().setAttributeNS(c||'',a,String(b)):this.va().setAttribute(a,String(b))}Xu(a){this.setAttribute('id',this.id=a)}ja(){this.id||this.Xu(this.uid);return this.id}Ef(a){this.parent=a}getParent(){return this.parent}Pf(a){this.W=a}zo(){return this.W}destroy(){this.parent&&(this.parent=
|
|
1166
1166
|
null);if(this.C){const a=this.C.parentNode;a&&a.removeChild(this.C)}}ib(a,b){this.va().style[a]=b}yh(a){this.Bs(a?'none':'auto')}Bs(a){this.ib('pointer-events',a)}rd(a){this.ib('display',a?'none':'initial')}};olympe.G.H.ui.P.Je.prototype.setHidden=olympe.G.H.ui.P.Je.prototype.rd;olympe.G.H.ui.P.Je.prototype.setPointerEvents=olympe.G.H.ui.P.Je.prototype.Bs;olympe.G.H.ui.P.Je.prototype.setIgnoreUserInteraction=olympe.G.H.ui.P.Je.prototype.yh;olympe.G.H.ui.P.Je.prototype.destroy=olympe.G.H.ui.P.Je.prototype.destroy;
|
|
1167
1167
|
olympe.G.H.ui.P.Je.prototype.getContainer=olympe.G.H.ui.P.Je.prototype.zo;olympe.G.H.ui.P.Je.prototype.setContainer=olympe.G.H.ui.P.Je.prototype.Pf;olympe.G.H.ui.P.Je.prototype.getParent=olympe.G.H.ui.P.Je.prototype.getParent;olympe.G.H.ui.P.Je.prototype.setParent=olympe.G.H.ui.P.Je.prototype.Ef;olympe.G.H.ui.P.Je.prototype.getId=olympe.G.H.ui.P.Je.prototype.ja;olympe.G.H.ui.P.Je.prototype.setId=olympe.G.H.ui.P.Je.prototype.Xu;olympe.G.H.ui.P.Je.prototype.setAttribute=olympe.G.H.ui.P.Je.prototype.setAttribute;
|
|
1168
|
-
olympe.G.H.ui.P.Je.prototype.getSvgDefsElement=olympe.G.H.ui.P.Je.prototype.uk;olympe.G.H.ui.P.Je.prototype.getHtmlElement=olympe.G.H.ui.P.Je.prototype.va;olympe.G.H.ui.P.Je.Aa=[olympe.N.P.
|
|
1168
|
+
olympe.G.H.ui.P.Je.prototype.getSvgDefsElement=olympe.G.H.ui.P.Je.prototype.uk;olympe.G.H.ui.P.Je.prototype.getHtmlElement=olympe.G.H.ui.P.Je.prototype.va;olympe.G.H.ui.P.Je.Aa=[olympe.N.P.ze];olympe.G.H.ui.P.pe=class extends olympe.G.H.ui.P.Je{constructor(a,b,c){super(a,b,c);this.y=this.x=0;this.ca=this.height=this.width=1;this.T=this.R=!1}oe(a){this.x=a;this.R=!0;this.ge()}qa(){return this.x}Fe(a){this.y=a;this.R=!0;this.ge()}ta(){return this.y}setPosition(a,b){this.x=a;this.y=b;this.R=!0;this.ge()}Ag(a){this.height=a;this.T=!0;this.ge()}Ce(){return this.height}Cg(a){this.width=a;this.T=!0;this.ge()}Cd(){return this.width}setScale(a){this.ca=a;this.ge()}jq(){return this.ca}Gb(a,b){this.width=
|
|
1169
1169
|
a;this.height=b;this.T=!0;this.ge()}Dx(a,b,c,d){let e=!1;void 0===a||this.R||(this.x=a,this.y=b||0,e=!0);void 0===c||this.T||(this.width=c,this.height=d||0,e=!0);e&&this.ge()}ge(){this.setAttribute('x',this.x);this.setAttribute('y',this.y);this.setAttribute('width',this.width);this.setAttribute('height',this.height);this.setAttribute('transform','scale('+this.ca+')')}};olympe.G.H.ui.P.pe.prototype.refreshBox=olympe.G.H.ui.P.pe.prototype.ge;olympe.G.H.ui.P.pe.prototype.setDefaultBox=olympe.G.H.ui.P.pe.prototype.Dx;
|
|
1170
1170
|
olympe.G.H.ui.P.pe.prototype.setDimension=olympe.G.H.ui.P.pe.prototype.Gb;olympe.G.H.ui.P.pe.prototype.getScale=olympe.G.H.ui.P.pe.prototype.jq;olympe.G.H.ui.P.pe.prototype.setScale=olympe.G.H.ui.P.pe.prototype.setScale;olympe.G.H.ui.P.pe.prototype.getWidth=olympe.G.H.ui.P.pe.prototype.Cd;olympe.G.H.ui.P.pe.prototype.setWidth=olympe.G.H.ui.P.pe.prototype.Cg;olympe.G.H.ui.P.pe.prototype.getHeight=olympe.G.H.ui.P.pe.prototype.Ce;olympe.G.H.ui.P.pe.prototype.setHeight=olympe.G.H.ui.P.pe.prototype.Ag;
|
|
1171
1171
|
olympe.G.H.ui.P.pe.prototype.setPosition=olympe.G.H.ui.P.pe.prototype.setPosition;olympe.G.H.ui.P.pe.prototype.getY=olympe.G.H.ui.P.pe.prototype.ta;olympe.G.H.ui.P.pe.prototype.setY=olympe.G.H.ui.P.pe.prototype.Fe;olympe.G.H.ui.P.pe.prototype.getX=olympe.G.H.ui.P.pe.prototype.qa;olympe.G.H.ui.P.pe.prototype.setX=olympe.G.H.ui.P.pe.prototype.oe;olympe.G.H.ui.P.pe.Aa=[olympe.N.P.yd];olympe.G.H.ui.P.Ia=class extends olympe.G.H.ui.P.pe{constructor(a,b,c){super(a,b,c);this.wE=ab(0,0,0);this.strokeColor=this.fillOpacity=this.fillColor=null;this.strokeOpacity=1;this.strokeWidth=0;this.zP=null;this.yP=0;this.wg=this.zg=this.Oj=this.filter=this.cs=this.strokeLinecap=null}ge(){this.setAttribute('transform',bb($a(this.wE,this.$D()))+' scale('+this.jq()+')');this.setAttribute('stroke-width',this.Wm())}$D(){return Za(this.x,this.y)}ax(){return Infinity}rotate(a,b,c){this.wE=ab(a,b||0,c||
|
|
@@ -1173,7 +1173,7 @@ olympe.G.H.ui.P.pe.prototype.setPosition=olympe.G.H.ui.P.pe.prototype.setPositio
|
|
|
1173
1173
|
d){this.strokeOpacity=d;this.setAttribute('stroke',this.strokeColor='rgb('+a+','+b+','+c+')');this.setAttribute('stroke-opacity',this.strokeOpacity)}Yx(a){this.zP=a;this.setAttribute('stroke-dasharray',this.zP)}Xx(a){this.yP=a;this.setAttribute('stroke-dashoffset',this.yP)}Zx(a){this.strokeLinecap=a;this.setAttribute('stroke-linecap',this.strokeLinecap)}gv(a){this.strokeWidth=a;this.ge()}Wm(){return Math.min(this.strokeWidth,this.ax())}vs(a){this.filter=a;this.setAttribute('filter','url(#'+this.filter.ja()+
|
|
1174
1174
|
')');this.Kr()}ky(){if(this.filter)try{const a=this.filter.va(),b=this.uk();b&&a.parentNode===b&&b.removeChild(a)}catch(a){this.V.debug('Not able to remove the filter, has probably already been removed')}finally{this.va().removeAttribute('filter'),this.filter=null}}Ox(a){this.Oj=a;this.setAttribute('mask','url(#'+a.ja()+')');this.Kr()}my(){if(this.Oj)try{const a=this.Oj.va(),b=this.uk();b&&a.parentNode===b&&b.removeChild(a)}catch(a){this.V.debug('Not able to remove the mask, has probably already been removed')}finally{this.va().removeAttribute('mask'),
|
|
1175
1175
|
this.Oj=null}}Vu(a){this.cs=a;this.setAttribute('fill','url(#'+this.cs.ja()+')');this.Kr()}ly(){if(this.cs)try{const a=this.cs.va(),b=this.uk();b&&a.parentNode===b&&b.removeChild(a)}catch(a){this.V.debug('Not able to remove the gradient, has probably already been removed')}finally{this.va().removeAttribute('gradient'),this.cs=null}}vw(a,b,c,d='linear',e='indefinite'){const f=document.createElementNS(olympe.G.H.ui.P.hd.Ke.Gf,'animate');f.setAttribute('attributeName',a);f.setAttribute('values',b);f.setAttribute('dur',
|
|
1176
|
-
c);f.setAttribute('calcMode',d);f.setAttribute('repeatCount',e);this.va().appendChild(f)}Pf(a){const b=this.zo();super.Pf(a);a&&a!==b&&this.Kr()}Kr(){const a=this.uk();var b=[this.filter,this.Oj,this.cs];if(a)for(const c of b)c&&(b=c.va(),a!==b.parentNode&&a.appendChild(b))}Da(){this.zg||(this.zg=new olympe.G.H.ui.La.Ic(this.va()),this.wg&&(this.wg.ma=this.zg));return this.zg}qb(){this.wg||(this.wg=new olympe.G.H.ui.La.
|
|
1176
|
+
c);f.setAttribute('calcMode',d);f.setAttribute('repeatCount',e);this.va().appendChild(f)}Pf(a){const b=this.zo();super.Pf(a);a&&a!==b&&this.Kr()}Kr(){const a=this.uk();var b=[this.filter,this.Oj,this.cs];if(a)for(const c of b)c&&(b=c.va(),a!==b.parentNode&&a.appendChild(b))}Da(){this.zg||(this.zg=new olympe.G.H.ui.La.Ic(this.va()),this.wg&&(this.wg.ma=this.zg));return this.zg}qb(){this.wg||(this.wg=new olympe.G.H.ui.La.xe(this.va()),this.zg&&(this.wg.ma=this.zg));return this.wg}gn(a){this.ib('cursor',
|
|
1177
1177
|
'pointer');return this.Da().gn(a)}Pl(){this.ib('cursor','default');return this.Da().Pl()}hn(a){return this.Da().hn(a)}Ql(){return this.Da().Ql()}jn(a){return this.Da().jn(a)}Rl(){return this.Da().Rl()}pn(a){return this.Da().pn(a)}Wl(){return this.Da().Wl()}mn(a){return this.Da().mn(a)}Ul(){return this.Da().Ul()}nn(a){return this.Da().nn(a)}Vl(){return this.Da().Vl()}kn(a){return this.Da().kn(a)}Sl(){return this.Da().Sl()}ln(a){return this.Da().ln(a)}Tl(){return this.Da().Tl()}qn(a){return this.Da().qn(a)}Xl(){return this.Da().Xl()}un(a){return this.Da().un(a)}Jn(){return this.Da().Jn()}sn(a){return this.Da().sn(a)}Hn(){return this.Da().Hn()}tn(a){return this.Da().tn(a)}In(){return this.Da().In()}rn(a){return this.Da().rn(a)}Gn(){return this.Da().Gn()}ap(a){return this.qb().ap(a)}Bn(){return this.qb().Bn()}hp(a){return this.qb().hp(a)}Ln(){return this.qb().Ln()}$o(a){return this.qb().$o(a)}An(){return this.qb().An()}gp(a){return this.qb().gp(a)}Kn(){return this.qb().Kn()}bp(a,
|
|
1178
1178
|
b){return this.qb().bp(a,b)}Cn(){return this.qb().Cn()}Kq(a,b){return this.qb().Kq(a,b)}Dn(){return this.qb().Dn()}ep(a){return this.qb().ep(a)}Fn(){return this.qb().Fn()}cp(a){return this.qb().cp(a)}En(){return this.qb().En()}};olympe.G.H.ui.P.Ia.prototype.unregisterPinch=olympe.G.H.ui.P.Ia.prototype.En;olympe.G.H.ui.P.Ia.prototype.registerPinch=olympe.G.H.ui.P.Ia.prototype.cp;olympe.G.H.ui.P.Ia.prototype.unregisterRotate=olympe.G.H.ui.P.Ia.prototype.Fn;
|
|
1179
1179
|
olympe.G.H.ui.P.Ia.prototype.registerRotate=olympe.G.H.ui.P.Ia.prototype.ep;olympe.G.H.ui.P.Ia.prototype.unregisterLongPressUp=olympe.G.H.ui.P.Ia.prototype.Dn;olympe.G.H.ui.P.Ia.prototype.registerLongPressUp=olympe.G.H.ui.P.Ia.prototype.Kq;olympe.G.H.ui.P.Ia.prototype.unregisterLongPress=olympe.G.H.ui.P.Ia.prototype.Cn;olympe.G.H.ui.P.Ia.prototype.registerLongPress=olympe.G.H.ui.P.Ia.prototype.bp;olympe.G.H.ui.P.Ia.prototype.unregisterVerticalPan=olympe.G.H.ui.P.Ia.prototype.Kn;
|
|
@@ -1219,7 +1219,7 @@ olympe.G.H.ui.P.Oh.prototype.setControl2=olympe.G.H.ui.P.Oh.prototype.Cx;olympe.
|
|
|
1219
1219
|
olympe.G.H.ui.P.Oh.Aa=[olympe.N.P.si];olympe.G.H.ui.P.Xy=class extends olympe.G.H.ui.P.qh{constructor(a,b){super(a,b);this.D='L'}rd(a){this.D=a?'M':'L'}$i(a,b){return this.D+(a+this.x)+','+(b+this.y)}};olympe.G.H.ui.P.Xy.prototype.getCommandString=olympe.G.H.ui.P.Xy.prototype.$i;olympe.host.Xc.register(olympe.host.ab.jb.WL,olympe.G.H.ui.P.Xy);olympe.G.H.ui.P.Xy.Aa=[olympe.N.P.xz];olympe.G.H.ui.P.Jv=class extends olympe.G.H.ui.P.qh{constructor(a,b){super(a,b)}$i(a,b){return'M'+(a+this.x)+','+(b+this.y)}};olympe.G.H.ui.P.Jv.prototype.getCommandString=olympe.G.H.ui.P.Jv.prototype.$i;olympe.host.Xc.register(olympe.host.ab.jb.XL,olympe.G.H.ui.P.Jv);olympe.G.H.ui.P.Jv.Aa=[olympe.N.P.yz];olympe.G.H.ui.P.om=class extends olympe.G.H.ui.P.qh{constructor(a,b){super(a,b);this.O=this.D=0}UE(a){this.D=a;gh(this)}$E(a){this.O=a;gh(this)}Ax(a,b){this.D=a;this.O=b;gh(this)}$i(a,b){return'S'+(a+this.D)+','+(b+this.O)+' '+(a+this.x)+','+(b+this.y)}};olympe.G.H.ui.P.om.prototype.getCommandString=olympe.G.H.ui.P.om.prototype.$i;olympe.G.H.ui.P.om.prototype.setControl=olympe.G.H.ui.P.om.prototype.Ax;olympe.G.H.ui.P.om.prototype.setYControl=olympe.G.H.ui.P.om.prototype.$E;
|
|
1220
1220
|
olympe.G.H.ui.P.om.prototype.setXControl=olympe.G.H.ui.P.om.prototype.UE;olympe.host.Xc.register(olympe.host.ab.jb.YL,olympe.G.H.ui.P.om);olympe.G.H.ui.P.om.Aa=[olympe.N.P.io];olympe.G.H.ui.P.Gp=class extends olympe.G.H.ui.P.Wn{constructor(a,b){super(a,b,document.createElementNS(olympe.G.H.ui.P.hd.Ke.Gf,'radialGradient'))}setRadius(a){this.setAttribute('r',a)}xx(a,b){this.setAttribute('cx',a);this.setAttribute('cy',b)}Jx(a,b){this.setAttribute('fx',a);this.setAttribute('fy',b)}};olympe.G.H.ui.P.Gp.prototype.setFocalPoint=olympe.G.H.ui.P.Gp.prototype.Jx;olympe.G.H.ui.P.Gp.prototype.setCenter=olympe.G.H.ui.P.Gp.prototype.xx;olympe.G.H.ui.P.Gp.prototype.setRadius=olympe.G.H.ui.P.Gp.prototype.setRadius;
|
|
1221
1221
|
olympe.host.Xc.register(olympe.host.ab.jb.ZL,olympe.G.H.ui.P.Gp);olympe.G.H.ui.P.Gp.Aa=[olympe.N.P.ko];olympe.G.H.ui.P.ot=class extends olympe.G.H.ui.P.Ia{constructor(a,b){super(a,b,document.createElementNS(olympe.G.H.ui.P.hd.Ke.Gf,'rect'))}$D(){const a=this.Wm();return Za(this.qa()+a/2,this.ta()+a/2)}ax(){return Math.min(this.Cd()/2,this.Ce()/2)}ge(){olympe.G.H.ui.P.Ia.prototype.ge.call(this);const a=this.Wm(),b=this.Cd(),c=this.Ce();this.setAttribute('height',c-a);this.setAttribute('width',b-a);this.filter&&this.filter.Dx(-a/2,-a/2,b,c)}Wb(a){this.setAttribute('rx',a);this.setAttribute('ry',a)}};
|
|
1222
|
-
olympe.G.H.ui.P.ot.prototype.setCornerRadius=olympe.G.H.ui.P.ot.prototype.Wb;olympe.G.H.ui.P.ot.prototype.refreshBox=olympe.G.H.ui.P.ot.prototype.ge;olympe.host.Xc.register(olympe.host.ab.jb.$L,olympe.G.H.ui.P.ot);olympe.G.H.ui.P.ot.Aa=[olympe.N.P.
|
|
1222
|
+
olympe.G.H.ui.P.ot.prototype.setCornerRadius=olympe.G.H.ui.P.ot.prototype.Wb;olympe.G.H.ui.P.ot.prototype.refreshBox=olympe.G.H.ui.P.ot.prototype.ge;olympe.host.Xc.register(olympe.host.ab.jb.$L,olympe.G.H.ui.P.ot);olympe.G.H.ui.P.ot.Aa=[olympe.N.P.ye];function hh(a){null!==a.$&&a.zo()&&setTimeout(()=>{const b=a.va().getBBox();a.$(b.width,b.height)},0)}
|
|
1223
1223
|
olympe.G.H.ui.P.bh=class extends olympe.G.H.ui.P.Ia{constructor(a,b){super(a,b,document.createElementNS(olympe.G.H.ui.P.hd.Ke.Gf,'text'));this.ma=this.da=this.text=this.fontSize=null;this.O='inherit';this.$=null}rb(a){this.fontSize=a;this.setAttribute('font-size',this.fontSize);hh(this)}Jb(a){this.text=a;this.va().textContent=this.text;this.setAttribute('text',this.text);hh(this)}vb(a){this.da=a;this.setAttribute('font-family',this.da);hh(this)}Bb(a){this.ma=a;this.setAttribute('font-weight',this.ma);
|
|
1224
1224
|
hh(this)}Kx(a){switch(a){case olympe.ui.ha.Db.Sb:this.O='middle';break;case olympe.ui.ha.Db.wi:this.O='end';break;default:this.O='left'}this.setAttribute('text-anchor',this.O)}Pf(a){olympe.G.H.ui.P.Ia.prototype.Pf.call(this,a);hh(this)}fp(a){this.$=a;hh(this)}Rq(){this.$=null}};olympe.G.H.ui.P.bh.prototype.unregisterTextSize=olympe.G.H.ui.P.bh.prototype.Rq;olympe.G.H.ui.P.bh.prototype.registerTextSize=olympe.G.H.ui.P.bh.prototype.fp;olympe.G.H.ui.P.bh.prototype.setContainer=olympe.G.H.ui.P.bh.prototype.Pf;
|
|
1225
1225
|
olympe.G.H.ui.P.bh.prototype.setHorizontalAlign=olympe.G.H.ui.P.bh.prototype.Kx;olympe.G.H.ui.P.bh.prototype.setFontWeight=olympe.G.H.ui.P.bh.prototype.Bb;olympe.G.H.ui.P.bh.prototype.setFontFamily=olympe.G.H.ui.P.bh.prototype.vb;olympe.G.H.ui.P.bh.prototype.setText=olympe.G.H.ui.P.bh.prototype.Jb;olympe.G.H.ui.P.bh.prototype.setFontSize=olympe.G.H.ui.P.bh.prototype.rb;olympe.host.Xc.register(olympe.host.ab.jb.bM,olympe.G.H.ui.P.bh);olympe.G.H.ui.P.bh.Aa=[olympe.N.P.Text];olympe.G.H.ui.P.Hp=class extends olympe.G.H.ui.P.bh{constructor(a,b){super(a,b);this.path=null;this.D=document.createElementNS(olympe.G.H.ui.P.hd.Ke.Gf,'textPath');this.va().appendChild(this.D)}As(a){this.path=a;this.D.setAttributeNS(olympe.G.H.ui.P.hd.Ke.rB,'xlink:href','#'+this.path.ja());a=this.uk();const b=this.path.va();a&&b.parentNode!==a&&a.appendChild(b)}Jb(a){let b;for(;b=this.D.firstChild;)this.D.removeChild(b);this.D.appendChild(document.createTextNode(a))}Kr(){olympe.G.H.ui.P.Ia.prototype.Kr.call(this);
|
|
@@ -1268,7 +1268,7 @@ olympe.dc.db.Database=class a extends Map{constructor(b,c,d){super();let e;this.
|
|
|
1268
1268
|
c,d,e=!1){var f=this.T(b,!0);if(!f.e&&null!==c&&(null===f.R||f.R===c)){f.R=c;let g;(null==(g=f.model())?0:g.e)&&f.db.ma(f,!0)}e&&f.persist();this.W===a.D.zB&&ii(f,!0);d&&this.Eb(f,d);this.D(a.Event.zH,b)}update(b,c){c&&(b=this.T(b,!0),this.Eb(b,c))}Pa(b){const c=this.get(b);void 0!==c&&(this.ma(c,!1),this.D(a.Event.AH,b))}Ka(b,c,d){c=this.T(c,!0);d=this.T(d,!0);switch(b){case di:ji(c,d);break;case ei:ki(c,d);break;default:li(c,b,d)}}vg(b,c,d){c=this.get(c);d=this.get(d);if(void 0!==c&&void 0!==d)switch(b){case di:mi(c,
|
|
1269
1269
|
d);break;case ei:ni(c,d);break;default:oi(c,b,d)}}Hg(b,c){for(const d of b)this.T(d).nk(c)}cf(b,c){for(const d of b)(b=this.get(d))&&b.detach(c)}lg(b){b.forEach(c=>{this.T(c).persist()})}kc(b){const c=this.get(b);void 0!==c&&(c.clear(),super.delete(b),this.D(a.Event.BG,b))}T(b,c=!1){let d;return null!=(d=this.get(b))?d:this.yf(b,c)}yf(b,c){const d=new olympe.dc.db.Instance(b,this);this.set(b,d);this.D(a.Event.AG,b);c&&this.W!==a.D.zB&&this.D(a.Event.qD,b);return d}sb(b){var c=olympe.oa.pk();this.R?
|
|
1270
1270
|
pi(this.R,c,b):b()}$(b){let c;null!=(c=this.R)&&c.C.delete(b)}dispatchEvent(b,...c){this.da.has(b)&&this.da.get(b).forEach(d=>{d(...c)})}D(b,c,...d){this.dispatchEvent(b,c,...d)}ma(b,c){let d;null!=(d=this.R)&&d.O.set(b,c)}Yc(b,c,d,e){let f;null!=(f=this.R)&&qi(f,b).fa(e?ri+c:c,d)}gd(b,c,d,e,f){let g;null!=(g=this.R)&&(d===si?f?qi(g,b).ma(c,e):qi(g,b).za(c,e):f?qi(g,b).Oa(c,e):qi(g,b).xb(c,e))}Ha(b,c,d){let e;null!=(e=this.R)&&qi(e,b).ld(c,d)}addEventListener(b,c){let d=this.da.get(b);void 0===d&&
|
|
1271
|
-
(d=[],this.da.set(b,d));d.push(c)}C(b,c){this.addEventListener(b,c)}Oa(b){this.ob.push(b)}O(b){for(const c of this.ca.values())if(c.T.has(b))return!0;return!1}Yh(b=!1){const c=hi++;this.W=a.D.tB;this.za.add(c);b||this.ca.set(c,new olympe.dc.db.IQ(c,this,this.qc));return c}
|
|
1271
|
+
(d=[],this.da.set(b,d));d.push(c)}C(b,c){this.addEventListener(b,c)}Oa(b){this.ob.push(b)}O(b){for(const c of this.ca.values())if(c.T.has(b))return!0;return!1}Yh(b=!1){const c=hi++;this.W=a.D.tB;this.za.add(c);b||this.ca.set(c,new olympe.dc.db.IQ(c,this,this.qc));return c}ag(b,c){if(!this.za.has(b))throw Error('Database: cannot use a transaction that has not been started');let d;this.R=null!=(d=this.ca.get(b))?d:null;b=this.W;this.W=null===this.R?a.D.zB:a.D.xT;c();this.W=b;this.R=null}ld(b){this.W=
|
|
1272
1272
|
a.D.Pn;const c=this.ca.get(b);c&&(this.R=c,ti(this.R),ui(this.R),this.ca.delete(b),this.R=null);this.za.delete(b);0===this.za.size&&(this.W=a.D.IDLE,this.ob.forEach(d=>{d()}),vi(this.Pb))}Eb(b,c){const d=a.C.sj;for(const [e,f]of c)void 0!==f&&(e[0]===d?wi(b,e.substring(1),f):b.update(e,f))}xb(b,c,d=[]){const e=c.tag();if(!b.has(e)&&(b.add(e),d.push(c),c=c.get(fi+di)))for(const f of c.values())null!==f.source()&&this.xb(b,f,d);return d}vf(){const b=a.Event.XB,c=a.Event.Bz,d=new Set,e=new Map;this.C(a.Event.zH,
|
|
1273
1273
|
f=>{d.add(f)});this.C(b,f=>{d.delete(f);e.delete(f)});this.C(c,(f,...g)=>{if(g[0]===ei&&g[1]===gi){const k=g[2];this.get(k).tc()||(g=e.get(k)||new Set,0===g.size&&e.set(k,g),g.add(f))}});this.Oa(()=>{d.forEach(f=>{const g=this.get(f);g&&null===g.model()&&this.V.error(`\n[DEBUG - DATABASE]\nInstance ${f} created but does not exist !\n${g.toString()}`)});d.clear();e.forEach((f,g)=>{const k=this.get(g);k&&this.V.error(`\n[DEBUG - DATABASE]\nThe model ${g} is extended by other models but does not exist !`+
|
|
1274
1274
|
`\nExtension models: ${Array.from(f.values()).join(', ')}`+`\n\n ${k.toString()}`)});e.clear()})}};olympe.dc.db.Database.C={dw:'$',nR:'~',sj:'?',uB:'=',vH:'|',zv:'@',ORIGIN:olympe.dc.Ib.ORIGIN,DESTINATION:olympe.dc.Ib.DESTINATION};olympe.dc.db.Database.Event={AG:0,BG:1,AL:2,qD:3,QF:4,RF:5,XB:6,Qg:7,Bz:8,YC:9,zH:10,AH:11,oK:12,TZ:13,SZ:14,DU:15,VG:16};olympe.dc.db.Database.D={IDLE:0,tB:1,xT:2,zB:3,Pn:4};function xi(a,b,c=[]){const d=b.ja();Rh(a.C,b,c);return e=>{if(null!==e)a.C.push(d,e);else{e=a.C;var f=e.O.get(d);if(void 0!==f){const g=e.D.indexOf(d);e.D.splice(g,1);f=Vh(e,f.C,e.D.length);e.write(Th(e,f,Date.now()),!1);e.O.delete(d)}}}}function yi(a,b,c={}){let d,e;return Zh(a.C,b,null!=(d=c.persist)?d:!0,null!=(e=c.CD)?e:!1)}function zi(a,b){a.D.Oa(b)}
|
|
@@ -1325,7 +1325,7 @@ this.md||null!==this.C}be(){let b;return null!=(b=this.properties)?b:new Map}Ac(
|
|
|
1325
1325
|
(c,d,e,f)=>[c,d,e,f]){const c=olympe.dc.Ib.ORIGIN,d=olympe.dc.Ib.DESTINATION;return function*(e,f,g){yield*e(f,(k,l,m)=>b(k,d,l,m));yield*e(g,(k,l,m)=>b(k,c,l,m))}(this.sb.bind(this),this.md,this.C)}tb(b,c,d,e){if(this.D!==a.C.Qg||!e){var f=b.get(c);if(void 0===f)f=new Map,b.set(c,f);else if(b=f.get(d),void 0!==b&&b!==e){f.delete(d);return}f.set(d,e)}}*sb(b,c){if(null!==b)for(const [d,e]of b){b=e.entries();for(const [f,g]of b)yield c(d,f,g)}}};olympe.dc.db.st.C={JC:0,Pz:1,Qg:2};olympe.dc.db.aT=class{constructor(a,b,c,d){this.V=a;this.view=b;this.C=c;(this.active=d.get('active'))&&this.init()}debug(a){const b=olympe.dc.Ya(a);if(this.C.has(b)){var c=this.C.get(a);a='\n[DEBUG - DATABASE]\n'+c.toString();if(!c.tc()){const d=[];for(;null!==c&&!d.includes(c.tag());)d.push(c.tag()),c=c.model();c=this.C.get(d[d.length-1]);const e=olympe.dc.db.Database.C.dw+olympe.dc.CloudObject.nameProp.ka();d.push('???');a+='\n\nThe instance <<'+b+'>> does not exists because the instance '+c.tag()+
|
|
1326
1326
|
' (name: '+c.get(e)+') has no model.\nList: '+d.join(' --M--\x3e ')}this.V.info(a)}else this.V.info('[DATABASE] Instance',b,'has never been created or referred by the database')}init(){const a=olympe.dc.db.Database.Event.BG,b=olympe.dc.db.Database.Event.XB,c=olympe.dc.db.Database.Event.Qg,d=olympe.dc.db.Database.Event.Bz,e=olympe.dc.db.Database.Event.YC,f=olympe.dc.db.Database.Event.QF,g=olympe.dc.db.Database.Event.RF,k=()=>{};this.C.C(olympe.dc.db.Database.Event.AG,()=>{});this.C.C(a,()=>{});this.C.C(b,
|
|
1327
1327
|
l=>{this.C.sb(()=>{Wi(this.view,l,k,`monitorRelations${l}`)})});this.C.C(c,l=>{this.C.sb(()=>{Xi(this.view,l,`monitorRelations${l}`)})});this.C.C(d,()=>{});this.C.C(e,()=>{});this.C.C(f,()=>{});this.C.C(g,()=>{})}};function Xh(a,b){if(null!==a.transactionId)throw Error('A transaction is already open');a.transactionId=a.C.Yh(b);a.V.debug(`DB Writer: transaction ${a.transactionId} opened`)}
|
|
1328
|
-
olympe.dc.db.sD=class{constructor(a,b,c,d){this.V=a;this.C=b;this.eb=c;this.O=d;this.transactionId=null}write(a,b){b&&(b=new Mj(this.eb),a.Wf(b),this.V.info(b.flush()));if(null===this.transactionId)throw Error('You must first open a transaction before to write');this.V.debug('DB Writer: writing patch',a.ja(),'for transaction',this.transactionId);this.C
|
|
1328
|
+
olympe.dc.db.sD=class{constructor(a,b,c,d){this.V=a;this.C=b;this.eb=c;this.O=d;this.transactionId=null}write(a,b){b&&(b=new Mj(this.eb),a.Wf(b),this.V.info(b.flush()));if(null===this.transactionId)throw Error('You must first open a transaction before to write');this.V.debug('DB Writer: writing patch',a.ja(),'for transaction',this.transactionId);this.C.ag(this.transactionId,()=>a.Wf(this))}close(){if(null===this.transactionId)throw Error('No transaction is open');this.C.ld(this.transactionId);this.V.debug(`DB Writer: transaction ${this.transactionId} committed`);
|
|
1329
1329
|
this.transactionId=null}yf(a,b,c,d){this.C.create(a,b,c,this.O);d&&this.C.Ka(olympe.dc.Lf.sh,a,d)}oh(a,b){this.C.update(a,b)}D(a,b=olympe.dc.Te.NONE){for(const c of Ph(this.eb,a,b))this.C.Pa(c)}Qb(a,b,c){this.C.Ka(a,b,c)}Xf(a,b,c){this.C.vg(a,b,c)}};
|
|
1330
1330
|
function Nj(a,b,c){if(!b)return'';let d='';if(c&&1<c)return'...';for(const [e,f]of b)if(d+=(d?', "':'"')+e+'":',!f)d+=JSON.stringify(f);else if(f instanceof olympe.dc.Kf||f instanceof olympe.dc.CloudObject)d+='Reference("'+f.ka()+'")';else if(f instanceof olympe.j.Color)d+='Color("'+f.Al()+','+f.zl()+','+f.ol()+','+f.nl()+'")';else if(f.constructor&&Object.prototype.hasOwnProperty.call(f.constructor.prototype,'toString'))d+=JSON.stringify(f.toString());else if('object'===typeof f){let g;d+=Nj(a,f,
|
|
1331
1331
|
(null!=(g=c)?g:0)+1)}return'{'+(d?d:'')+'}'}function Oj(a,b){let c;return'string'===typeof b?null!=(c=a.db.name(b))?c:b:''}function Pj(a,b){let c;return b===olympe.dc.Lf.sh?'Model':null!=(c=a.db.name(b))?c:b}
|
|
@@ -1362,20 +1362,20 @@ return ik(this,new olympe.dc.query.wb.Mk(jk(this),a,b,c))}Zi(){const a=(new Set(
|
|
|
1362
1362
|
b=0){return new olympe.dc.nb(this.D,this.source,this.wb,this.cursor,this.O,{Mi:this.C.Mi,max:a,offset:b,Hl:this.C.Hl})}lv(a,b=olympe.dc.query.uz.ASC){if(0>this.cursor)throw new olympe.dc.query.ti('You are trying to sort an empty query. Please first follow at least one relation to sort a query.');if(!olympe.dc.eb().me(a,olympe.dm.Property))throw new olympe.dc.query.ti(`The specified property while trying to sort a query is invalid: ${a}`);const c=this.wb[this.cursor],d={Mi:this.cursor,max:this.C.max,
|
|
1363
1363
|
offset:this.C.offset,Hl:this.C.Hl},e=Array.from(this.wb);e[this.cursor]=c.sort(a,b);return new olympe.dc.nb(this.D,this.source,e,this.cursor,this.O,d)}Ur(){const a=this.C.Mi;let b;return null!==a?null==(b=this.wb[a])?void 0:b.Ur():null}back(a=1){if(0>this.cursor||1>a)return this;let b=this.cursor;for(let c=0;c<a;c++){const d=this.wb[b].C;for(b--;-1<b&&jk(this,b)!==d;)b--}return new olympe.dc.nb(this.D,this.source,Array.from(this.wb),b,this.O,this.C)}parse(){const a=new Map,b=jk(this,-1),c={limit:this.C.max,
|
|
1364
1364
|
offset:this.C.offset,returned:this.O.has(b),filter:[],optional:!1,inheritance:!1,next:[]};a.set(b,c);this.db.zu(this.D)?c.dataType=olympe.dc.Ya(this.D):(c.root=olympe.dc.Ya(this.D),c.dataType=this.C.Hl);this.wb.forEach((d,e)=>{const f=d.ja(),g=d.nh();Object.assign(g,{returned:this.O.has(f),next:[]});a.set(f,g);g.sort&&this.C.Mi!==e&&delete g.sort;if(1>=e&&d instanceof olympe.dc.query.wb.ht&&d.relation.Rb(olympe.dc.CloudObject.instancesRel))Object.assign(c,g);else if(0===e&&d instanceof olympe.dc.query.wb.Mk&&
|
|
1365
|
-
d.relation.Rb(olympe.dc.CloudObject.extendedByRel))Object.assign(c,g),c.inheritance=!0;else{let k;null==(k=a.get(d.C))||k.next.push(g)}});return c}Kd(a){const b=(null==a?0:a.Xg)?a.Xg:olympe.dc.nb.Jf.vz;let c;return olympe.dc.query.yA().executeQuery(mk(this),b,{Nr:null!=(c=null==a?void 0:a.$z)?c:null==a?void 0:a.cacheId,
|
|
1366
|
-
b?0:b.Xg)?b.Xg:olympe.dc.nb.Jf.cm;a='function'===typeof a.
|
|
1365
|
+
d.relation.Rb(olympe.dc.CloudObject.extendedByRel))Object.assign(c,g),c.inheritance=!0;else{let k;null==(k=a.get(d.C))||k.next.push(g)}});return c}Kd(a){const b=(null==a?0:a.Xg)?a.Xg:olympe.dc.nb.Jf.vz;let c;return olympe.dc.query.yA().executeQuery(mk(this),b,{Nr:null!=(c=null==a?void 0:a.$z)?c:null==a?void 0:a.cacheId,jg:null==a?void 0:a.jg}).then(d=>{let e;return null!=(e=null==d?void 0:Wj(d))?e:olympe.dc.xc.empty()})}zf(){return Wj(ok(olympe.dc.query.yA(),mk(this)))}observe(a,b){const c=(null==
|
|
1366
|
+
b?0:b.Xg)?b.Xg:olympe.dc.nb.Jf.cm;a='function'===typeof a.se?a.se():a;let d;return pk(olympe.dc.query.yA(),mk(this),a,olympe.dc.Jc.SELF,c,{Nr:null!=(d=null==b?void 0:b.$z)?d:null==b?void 0:b.cacheId,jg:null==b?void 0:b.jg,Fw:null==b?void 0:b.Fw}).pipe(rxjs.operators.map(e=>Wj(e)),rxjs.operators.distinctUntilChanged())}ja(){null===this.id&&(this.id=olympe.oa.Xd(this.D+Vj(this).map(a=>a.R()).join()+Array.from(new Set(this.O)).sort().toString()+this.C.Mi+this.C.max+this.C.offset));return this.id}Sd(){return this.source}fb(){let a;
|
|
1367
1367
|
return{b:this.D,p:this.wb.map(b=>b.fb()),r:Array.from(this.O),s:this.source,e:{m:this.C.max,o:this.C.offset,s:this.C.Mi,rm:null!=(a=this.C.Hl)?a:this.db.model(this.D)}}}toString(){return`Query: ${JSON.stringify(this)}`}toJSON(){return{origin:this.db.tc(this.D)?olympe.dc.CloudObject.get(this.D):this.D,relations:this.wb.map(a=>a.toJSON())}}};olympe.dc.nb.prototype.observe=olympe.dc.nb.prototype.observe;olympe.dc.nb.prototype.executeFromCache=olympe.dc.nb.prototype.zf;
|
|
1368
1368
|
olympe.dc.nb.prototype.execute=olympe.dc.nb.prototype.Kd;olympe.dc.nb.prototype.parse=olympe.dc.nb.prototype.parse;olympe.dc.nb.prototype.back=olympe.dc.nb.prototype.back;olympe.dc.nb.prototype.sortBy=olympe.dc.nb.prototype.lv;olympe.dc.nb.prototype.limit=olympe.dc.nb.prototype.bn;olympe.dc.nb.prototype.cast=olympe.dc.nb.prototype.Gw;olympe.dc.nb.prototype.filter=olympe.dc.nb.prototype.filter;olympe.dc.nb.prototype.andReturn=olympe.dc.nb.prototype.Zi;olympe.dc.nb.prototype.followRecursively=olympe.dc.nb.prototype.Yp;
|
|
1369
1369
|
olympe.dc.nb.prototype.follow=olympe.dc.nb.prototype.oc;olympe.dc.nb.followRule=olympe.dc.nb.af;olympe.dc.nb.instancesOf=olympe.dc.nb.KA;olympe.dc.nb.fromTag=olympe.dc.nb.Em;olympe.dc.nb.from=olympe.dc.nb.from;olympe.dc.nb.Jf={cm:1,vz:2,Qp:3};olympe.dc.nb.C={GB:'cacheBucketName',DH:'isCacheable'};function qk(a){null===a.$b&&null===a.C&&(a.$b=zh(a.O))}
|
|
1370
1370
|
olympe.dc.query.vi=class extends olympe.dc.$q{constructor(a){super(a,null);this.O=new olympe.dc.transaction.Xk}static Pw(a){const b=new olympe.dc.query.vi(`DataResult_${a.ja()}`);b.D=a.Sd();return b}static C(a){const b=new olympe.dc.query.vi(a.i);let c;b.D=null!=(c=a.s)?c:null;let d;b.aA=null!=(d=a.t)?d:null;let e;b.$b=null!=(e=a.p)?e:[];return b}Wf(a){qk(this);return super.Wf(a)}Zf(){qk(this);return super.Zf()}wA(){qk(this);return super.wA()}create(a,b,c){this.O.yf(a,this.D,c,b);return this}Qb(a,
|
|
1371
1371
|
b,c){this.O.Qb(a,b,c,null,null);return this}fb(){return super.fb()}};olympe.dc.query.vi.prototype.createRelation=olympe.dc.query.vi.prototype.Qb;olympe.dc.query.vi.prototype.create=olympe.dc.query.vi.prototype.create;olympe.dc.query.vi.fromQuery=olympe.dc.query.vi.Pw;function ok(a,b){const c=new olympe.dc.query.fK(a.V,b);if(a.D.view.tc(b.D)){bk(c,b.D);for(const d of Vj(b))d.Kd(c)}return c}
|
|
1372
|
-
function pk(a,b,c,d,e,f){const g=b.ja();let k=a.C.get(g);if(!k){var l=b.Sd();a.V.debug(`Create new subscription for query ${g} for subscriber ${d}, to be executed by the data source ${l}`);l=!1===f.
|
|
1372
|
+
function pk(a,b,c,d,e,f){const g=b.ja();let k=a.C.get(g);if(!k){var l=b.Sd();a.V.debug(`Create new subscription for query ${g} for subscriber ${d}, to be executed by the data source ${l}`);l=!1===f.jg||a.R&&l===olympe.dc.Jc.SERVER?[]:Array.from(a.C.values());k=new olympe.dc.query.nK(a.V,a.D,b,e,a.W.bind(a,e,f));a.C.set(g,k);rk(k,m=>a.O.add(m));k.start(l)&&(null==f?0:f.Nr)&&sk(a,b,e,f).catch(m=>{a.V.error(`Was not able to get the result of the subscribed query ${g} to add it to the cache: ${m}`)})}return new rxjs.Observable(m=>
|
|
1373
1373
|
{const n=()=>{p&&c.IO(p);m.complete();if(r){var t=r;const v=a.C.get(g);a.V.debug(`${d} unsubscribed from ${g}`);if(null==v)t=0;else{var u=v;u.O.delete(t)&&u.V.debug(`Remove subscriber ${d} for query ${u.query.ja()}, now have ${u.O.size} subscribers`);d!==olympe.dc.Jc.SELF&&(u.ca--,0===u.ca&&ek(u.C));t=0===u.O.size}t&&(a.V.debug(`No more subscriber to ${g}, remove the subscription`),a.O.delete(g),a.C.delete(g),v.destroy())}},p=c.Ve(n),r=tk(k,d,m);return n})}
|
|
1374
1374
|
function uk(a){a.O.forEach(b=>{let c;null==(c=a.C.get(b))||vk(c)});a.O.clear()}function wk(a,b,c,d){return q(function*(){const e=null!=d?d:c===olympe.dc.nb.Jf.Qp;if(b instanceof ReadableStream)yield yi(a.D,b,{CD:e});else{var f;if(f=b instanceof olympe.dc.$q)f=b.ja(),f=!a.T.R.has(f);f&&a.D.lh(b,{CD:e})}})}function xk(a){a.V.debug('Send GetContext request to the orchestrator');const b=new olympe.dc.Request(olympe.dc.Request.C.cr,olympe.dc.Jc.SERVER);return oh(a.kf,b).then(c=>{a.D.lh(c)})}
|
|
1375
1375
|
function yk(a,b){const c=b.Sd();if(c===olympe.dc.Jc.SELF||a.R&&c===olympe.dc.Jc.SERVER)return Promise.resolve(!0);a=Array.from(a.C.values()).filter(d=>d.hh(b)).map(d=>new Promise(e=>d.Ii(f=>e(!f))));return Promise.all(a).then(d=>d.some(e=>e))}function sk(a,b,c,d){return q(function*(){var e=b.Sd();e=uh(uh(new olympe.dc.Request(olympe.dc.Request.C.Ct,e,b),olympe.dc.nb.C.DH,c===olympe.dc.nb.Jf.Qp),olympe.dc.nb.C.GB,null==d?void 0:d.Nr);return oh(a.kf,e)})}
|
|
1376
1376
|
function zk(a,b,c){const d=[];for(const e of a.C.values())Ak(e,b,c)&&d.push(sk(a,e.query,olympe.dc.nb.Jf.vz,{}).then(f=>wk(a,f,olympe.dc.nb.Jf.vz)));return Promise.all(d).then(()=>{})}
|
|
1377
|
-
olympe.dc.query.HT=class{constructor(a,b,c,d,e){this.V=a;this.D=b;this.T=c;this.kf=d;this.R=e;this.C=new Map;this.O=new Set;zi(b,()=>uk(this));xh(d,olympe.dc.Request.C.jG,f=>{wk(this,f.Pe(),olympe.dc.nb.Jf.cm).catch(g=>this.V.error(`Error while applying data notification on DB: ${g}`))})}executeQuery(a,b,c){const d=this;return q(function*(){const e='boolean'===typeof c.
|
|
1378
|
-
null}return ok(d,a)})}W(a,b,c,d,e,f){const g=c.Sd();if(g===olympe.dc.Jc.SELF||b.
|
|
1377
|
+
olympe.dc.query.HT=class{constructor(a,b,c,d,e){this.V=a;this.D=b;this.T=c;this.kf=d;this.R=e;this.C=new Map;this.O=new Set;zi(b,()=>uk(this));xh(d,olympe.dc.Request.C.jG,f=>{wk(this,f.Pe(),olympe.dc.nb.Jf.cm).catch(g=>this.V.error(`Error while applying data notification on DB: ${g}`))})}executeQuery(a,b,c){const d=this;return q(function*(){const e='boolean'===typeof c.jg?c.jg:yield yk(d,a);if(!e||(null==c?0:c.Nr))try{const f=yield sk(d,a,b,c);e||(yield wk(d,f,b))}catch(f){return d.V.error(`Error while sending a query to data source ${a.Sd()}: ${f}`),
|
|
1378
|
+
null}return ok(d,a)})}W(a,b,c,d,e,f){const g=c.Sd();if(g===olympe.dc.Jc.SELF||b.jg||this.R&&g===olympe.dc.Jc.SERVER)return e(),null;if(a!==olympe.dc.nb.Jf.cm)return sk(this,c,a,b).then(t=>{var u=t;t instanceof ReadableStream&&(u=(u=d())?t.pipeThrough(u):t);return wk(this,u,a,b.Fw)}).then(e).catch(f),null;let k,l=!1;const m=t=>{k=[];t&&this.V.debug(`Resend subscription ${c.ja()} after detection of dead subscription in the remote service`);sk(this,c,a,b).then(u=>{if(l)return this.V.warn(`Received data result after query subscription ${c.ja()} has been destroyed. Could happen with queries observed multiple times successively quickly.`),
|
|
1379
1379
|
Promise.resolve();var v=u;u instanceof ReadableStream&&(v=(v=d())?u.pipeThrough(v):u);return wk(this,v,a,b.Fw).then(()=>{k.forEach(w=>wk(this,w,a))}).finally(()=>{k=null})}).then(e).catch(f)},n=c.ja();m(!1);const p=uh(new olympe.dc.Request(olympe.dc.Request.C.zz,g,c),olympe.dc.nb.C.GB,null==b?void 0:b.Nr),r=this.kf.subscribe(p,m.bind(this,!0)).pipe(qb(olympe.Y.errors.fH,()=>{},0)).pipe(qb(olympe.Y.errors.MF,(t,u)=>{this.V.debug(`Data Provider: Subscribe to topic ${t.ja()} now that we are back online, after waiting for ${u}ms`);
|
|
1380
1380
|
m(!0)},0)).subscribe(rxjs.Subscriber.create(t=>{Array.isArray(k)?k.push(t):wk(this,t,a)},t=>{this.V.error(`An error occurred with the subscription ${n}: ${t}`);f(String(t))}));return()=>{l=!0;this.V.debug(`Unsubscribe to query ${n} from data source ${g}`);r.unsubscribe()}}};function Bk(a){const b=olympe.dc.eb();let c=!1;const d=a.k.map(e=>{const f=e.split('.').map(g=>b.tc(g)?olympe.dc.CloudObject.get(g):(olympe.gb.Cb('dc.query').error(`CloudObject with tag ${g} not present but required for deserialization`),c=!0,null));return[e,1===f.length?f[0]:f]});return c?null:olympe.dc.xc.create(d,a.a,a.r)}
|
|
1381
1381
|
olympe.dc.xc=class{constructor(){this.C=[];this.D=new Map;this.O=[];this.R=[];this.hash=''}static empty(){return new olympe.dc.xc}[Symbol.iterator](){let a=0;return{next:()=>{var b={done:!0};a<this.C.length&&(b=this.C[a],b={value:[b,this.D.get(b)],done:!1},a++);return b}}}entries(){return this.C.map(a=>[a,this.D.get(a)])}values(){return this.D.values()}keys(){return this.C.values()}Ol(){return this.C.map(a=>this.D.get(a))}size(){return this.C.length}has(a){return this.D.has(a)||this.Ol().includes(a)}indexOf(a){return null===
|
|
@@ -1438,7 +1438,7 @@ cd(e,{['X-Source-Origin']:a.origin});al(this,e).then(k=>{let l;null==(l=this.C.g
|
|
|
1438
1438
|
function ol(a,b){const c=b.ja();null===a.D&&(a.D=new olympe.oa.Nt(6E4),kb(a.D,(f,g)=>{a.applyTransaction(g,!1).catch(k=>{a.V.error(`Error occurred when applying burst transaction ${f} to the data source: ${k}`)})}),lb(a.D,()=>{a.D=null}));let d;const e=null!=(d=a.D.get(c))?d:new olympe.dc.db.Rf(c);b.Wf(e);ib(a.D.C,c)||a.D.set(c,e)}
|
|
1439
1439
|
function pl(a,b){const c=b.ja();let d,e;const f=null!=(e=null==(d=a.D)?void 0:d.get(c))?e:new olympe.dc.db.Rf(c);let g;null==(g=a.D)||g.delete(c);b.Wf(f);return a.applyTransaction(f,!1).catch(k=>{a.V.error(`Error occurred when applying burst transaction ${c} to the data source: ${k}`)})}function ql(a,b){const c=rxjs.defer(()=>a.C.executeQuery(b));return 0<a.W?rxjs.interval(a.W).pipe(rxjs.operators.switchMap(()=>c)):c}
|
|
1440
1440
|
olympe.dc.sources.rJ=class{constructor(a,b){this.V=a;this.C=b;this.kf=null;this.T=olympe.dc.query.yA();this.R=olympe.dc.iN();this.O=new olympe.j.ee('Context of source '+this.ja());let c;this.W=null!=(c=b.yo(olympe.dc.sources.pa.SC))?c:-1;this.D=null}ja(){return this.C.ja()}init(a){this.kf=a;if(this.ja()===olympe.dc.Jc.SELF)return this;(new Promise((b,c)=>{let d=!0;rl(this.C,this.O).subscribe(rxjs.Subscriber.create(e=>{if(this.V.C()){this.V.debug(`Data source ${this.C.name()} has loaded ${e.size()} data types in its cache:`);
|
|
1441
|
-
for(const [f,g]of e)this.V.debug(`=> DataType: ${g.name()} (${f})`)}d&&(d=!1,b())},c))})).then(()=>this.C.init(this.O)).catch(b=>{this.V.error(`Error while initialization of DataSource ${this.C.name()} (${this.ja()}): ${b}`)});return this}healthCheck(){return this.C.healthCheck().then(()=>`Data source ${this.C.name()} (${this.C.ja()}) OK`)}destroy(){this.O.destroy();return this.C.destroy()}da(a){const b=a.Pe();var c=a.getType();switch(c){case el:const d=olympe.dm.DataSource.Vf.
|
|
1441
|
+
for(const [f,g]of e)this.V.debug(`=> DataType: ${g.name()} (${f})`)}d&&(d=!1,b())},c))})).then(()=>this.C.init(this.O)).catch(b=>{this.V.error(`Error while initialization of DataSource ${this.C.name()} (${this.ja()}): ${b}`)});return this}healthCheck(){return this.C.healthCheck().then(()=>`Data source ${this.C.name()} (${this.C.ja()}) OK`)}destroy(){this.O.destroy();return this.C.destroy()}da(a){const b=a.Pe();var c=a.getType();switch(c){case el:const d=olympe.dm.DataSource.Vf.we,e=olympe.dm.DataSource.Vf.Dt;
|
|
1442
1442
|
return this.C.healthCheck().then(()=>({s:e})).catch(g=>({s:d,r:String(g)}));case fl:return this.C.executeQuery(b);case kl:return c=b.Zf(),ol(this,c),this.R.lh(ph(c)),Promise.resolve();case ml:case nl:const f=b.Zf();return this.applyTransaction(f,c===nl).finally(()=>{if(a.origin===olympe.dc.Jc.SELF){var g=f.ja();g=th(new olympe.dc.Request(olympe.dc.Request.C.Ry,olympe.dc.Jc.SELF,{id:g,finalize:olympe.dc.transaction.po.C.Yv,error:null}),this.ja());let k;null==(k=this.kf)||k.ai(g)}});case ll:return pl(this,
|
|
1443
1443
|
b.Zf());case hl:return b.content instanceof Uint8Array?this.C.uploadFileContent(b.tag,b.model,b.content).then(()=>`datasource://${b.tag}`):Promise.reject('File content is undefined');case il:return this.C.downloadFileContent(b.tag,b.model);case jl:return this.C.deleteFileContent(b.tag,b.model);default:return Promise.reject(`Request of type ${a.getType()} is not supported by the data source`)}}subscribe(a){if(a.getType()===gl){const b=a.Pe();a=a.origin;return a===olympe.dc.Jc.SELF?ql(this,b):pk(this.T,
|
|
1444
1444
|
b,this.O,a,olympe.dc.nb.Jf.cm,{}).pipe(rxjs.operators.map(c=>{let d,e;return null!=(e=null==(d=c.Dl)?void 0:d.O)?e:null}),rxjs.operators.filter(c=>null!==c),rxjs.operators.map(c=>ph(c,Date.now())))}return rxjs.throwError(()=>Error('Subscription request not supported'))}applyTransaction(a,b){const c=this;return q(function*(){var d=sl(a);yield c.C.applyTransaction(d,{batch:b});d=Date.now();yield zk(c.T,c.ja(),a);c.R.lh(ph(a,d));return d})}};olympe.dc.sources.rJ.Aa=[olympe.dc.sources.Ly];function sl(a){const b=olympe.dc.sources.Sp.C.mQ,c=olympe.dc.sources.Sp.C.IU,d=olympe.dc.sources.Sp.C.uQ,e=olympe.dc.sources.Sp.C.nQ,f=olympe.dc.sources.Sp.C.vQ,g=[],k=[],l=[],m=[],n=[];a.je.forEach((p,r)=>{const t=p.Qe();p.O()?g.push(tl(b,r,t,p.$()?p.be():null)):p.$h()?l.push(tl(d,r,t,null,p.R())):p.$()&&k.push(tl(c,r,t,p.be()));for(const [u,v,w]of p.Xh())p=a.ih(v),w?m.push(new ul(e,u,r,v,t,p.Qe())):n.push(new ul(f,u,r,v,t,p.Qe()))});return n.concat(l,g,k,m)}
|
|
@@ -1453,7 +1453,7 @@ throw g;}))))}};olympe.dc.sources.KB.Aa=[olympe.dc.sources.Ly];const Bl=olympe.d
|
|
|
1453
1453
|
function Ml(a,b){let c;return(null==(c=a.za.Sd(b))?void 0:c.yo(olympe.dc.sources.pa.am))!==olympe.dm.DataSource.am.HF}function Nl(a,b){b=b.Lg();if(b!==olympe.dm.User.C&&a.yo(olympe.dc.sources.pa.ZC))throw a=`User ${b} has no right to access the restricted data source ${a.name()} (${a.ja()}). Please use an admin account instead.`,new olympe.dc.sources.RT(a);}
|
|
1454
1454
|
function Ol(a,b,c,d,e){return q(function*(){var f=olympe.Y.pd.C.SEND,g=olympe.Y.pd.C.GET;const k=olympe.Y.pd.C.PUBLISH,l=olympe.Y.pd.C.SUBSCRIBE,m=d.UO();var n=d.body();if(e!==n.Lg())throw Error('Access denied: try to impersonate a user');Nl(c,n);let p;if(null==(p=a.kf)||!p.sources.has(n.Yf()))throw Error(`Try to process a message with destination data source ${n.Yf()} coming from remote but not started here`);if(m===l){if(n.getType()===Dl)f=n.Pe().ja();else throw Error('Not supported type of subscription');
|
|
1455
1455
|
g=yield d.jE(f);a.ca.set(g,f);g=a.T.get(f);g||(g=new Pl(a.V,f,b,th(n,olympe.dc.Jc.Rp)),a.T.set(f,g));g.subscribe()}else m===g?(n=yield oh(b,n),void 0!==n?yield d.ai(n):a.V.warn(`Request from ${d.source()} requires an output value, but got undefined instead.`)):m===f?(yield oh(b,n),yield d.nM()):m===k&&(yield oh(b,n))})}
|
|
1456
|
-
olympe.dc.sources.CK=class extends olympe.dc.sources.KB{constructor(a,b,c,d,e,f){super(a,d);this.R=b;this.C=c;this.db=e;this.O=new olympe.j.ee('Remote Provider Context');this.ma=new Map;this.T=new Map;this.ca=new Map;this.za=f}ja(){return olympe.dc.Jc.Rp}W(a){var b=olympe.Y.de;const c=a.Yf(),d=a.getType();this.V.C()&&this.V.debug(`Request (type: ${d}) will be sent to remote data provider ${c}: ${a.Pe()}`);switch(d){case Bl:const e=olympe.dm.DataSource.Vf.
|
|
1456
|
+
olympe.dc.sources.CK=class extends olympe.dc.sources.KB{constructor(a,b,c,d,e,f){super(a,d);this.R=b;this.C=c;this.db=e;this.O=new olympe.j.ee('Remote Provider Context');this.ma=new Map;this.T=new Map;this.ca=new Map;this.za=f}ja(){return olympe.dc.Jc.Rp}W(a){var b=olympe.Y.de;const c=a.Yf(),d=a.getType();this.V.C()&&this.V.debug(`Request (type: ${d}) will be sent to remote data provider ${c}: ${a.Pe()}`);switch(d){case Bl:const e=olympe.dm.DataSource.Vf.we,f=olympe.dm.DataSource.Vf.Dt;b=Ll(this,
|
|
1457
1457
|
c)?b.get(c,a):Promise.resolve({s:f});a=Ml(this,c)?this.C.jh(a):Promise.resolve({s:f});return Promise.all([b,a]).then(([l,m])=>{if((null==l?void 0:l.s)===e||(null==m?void 0:m.s)===e){let n,p;return{s:e,r:`${null!=(n=null==l?void 0:l.r)?n:''} ${null!=(p=null==m?void 0:m.r)?p:''}`}}return{s:f}});case Cl:return Ml(this,c)?bl(this.C,a):b.get(c,a);case El:const g=a.Pe().Zf().ja();return(Ll(this,c)?b.get(c,a):cl(this.C,a)).finally(()=>wl(this,g));case Fl:const k=a.Pe().Zf().ja();return(Ml(this,c)?cl(this.C,
|
|
1458
1458
|
a):b.get(c,a)).finally(()=>wl(this,k));case Gl:return Ll(this,c)?b.publish(c,a).catch(l=>{this.V.error(`An error occurred while sending "burst transaction" to the data source ${c}: ${l}`)}):Promise.resolve();case Hl:return Ll(this,c)?b.get(c,a):cl(this.C,a);case Il:return Ml(this,c)?this.C.uploadFileContent(a):b.get(c,a);case Jl:return Ml(this,c)?this.C.downloadFileContent(a):b.get(c,a);case Kl:return Ml(this,c)?this.C.deleteFileContent(a):b.send(c,a);default:return Promise.reject(`Messages of type ${a.getType()} is not supported by the source ${this.ja()}`)}}$(a,
|
|
1459
1459
|
b){const c=a.Yf(),d=a.getType();if(!Ll(this,c))return rxjs.throwError(()=>Error(`Subscription request not supported for data source ${this.db.name(c)} (${c}) which uses HTTP only.`));this.V.C()&&this.V.debug(`Subscription (type: ${d}) will be sent to remote data provider ${c}: ${a.Pe()}`);return d===Dl?olympe.Y.de.observe(c,this.O,a,{onRetry:b}):rxjs.throwError(()=>Error(`Do not handle subscription request of type ${d}`))}init(a){super.init(a);if(a.O)return this;olympe.dc.nb.from(this.R,this.R).oc(olympe.dm.DataSource.qx).filter(olympe.dc.query.Yb.Rb(olympe.dm.DataSource.Yt,
|
|
@@ -1479,11 +1479,11 @@ function pm(a,b,c,d,e){const f=a.C.le(a.ja(),b);if('string'!==typeof f)return Pr
|
|
|
1479
1479
|
function ym(a,b){return q(function*(){const c=b.headers.graphId,d=b.data;let e,f;return(null!=(f=null==(e=a.Pa)?void 0:tb(e,d))?f:olympe.oa.stream.sz.transform(b.data)).pipeThrough(new TransformStream({transform:(g,k)=>{a.V.debug(`Received ${g.length} operations for patch ${c}`);k.enqueue(yh(g,a.ja(),null,c))}}))})}
|
|
1480
1480
|
function Cm(a,b,c){return q(function*(){const d=b.pi;let e;if(c instanceof olympe.oa.stream.lo){e=new olympe.dc.db.Rf(d);try{for(const f=ia(c);;){const g=yield f.next();if(g.done)break;a.T.C(g.value.p,d).Wf(e)}}catch(f){a.V.error(`Error while reading the stream: ${f}`),e=new olympe.dc.db.Rf(d)}}else e=a.T.C(b.p,d);return ph(e,b.ct)})}
|
|
1481
1481
|
olympe.dc.sources.gL=class extends olympe.dc.sources.KB{constructor(a,b,c,d,e,f,g){super(a,c);this.Na=b;this.C=d;this.T=new olympe.dc.transaction.cw(this.ja());this.O=new Map;this.R=new Set;this.version=e||'unknown';this.Pa=g?new olympe.oa.stream.$U:null;this.za=new olympe.oa.promise.kL(f);olympe.j.$a(this.D.Io(),()=>{this.O.forEach((k,l)=>{k.error(new olympe.Y.errors.Zv('Connection to server has been recovered',l))})})}ja(){return olympe.dc.Jc.SERVER}W(a){var b=a.getType();const c=a.Pe(),d=vh(a);
|
|
1482
|
-
switch(b){case nm:return a=olympe.dm.DataSource.Vf.
|
|
1482
|
+
switch(b){case nm:return a=olympe.dm.DataSource.Vf.we,b=olympe.dm.DataSource.Vf.Dt,Promise.resolve(ie(this.Na)?{s:b}:{s:a,r:'Disconnected'});case Tl:return om(this);case Ul:return qm(this,c);case Vl:return sm(this,c);case Wl:return um(this,c);case lm:return vm(this,c);case Zl:return d.get(olympe.dc.nb.C.DH)?wm(this,c):zm(this,c);case Xl:return Am(this,c);case Yl:return Bm(this,c.C3,c.debug,c.optional);case im:case jm:case km:case mm:return rm(this,b,{});case fm:return this.C.downloadFileContent(a);
|
|
1483
1483
|
case em:return this.C.deleteFileContent(a);case gm:return this.C.uploadFileContent(a);default:return Promise.reject(`ServerProvider: Message of type ${b} not supported yet`)}}$(a,b){if(a.getType()===$l){const c=a.Pe(),d=c.ja();return(new rxjs.Observable(e=>{const f=xm(this,c);this.R.delete(d);this.O.set(d,e);rm(this,bm,f).catch(g=>e.error(g))})).pipe(qb(olympe.Y.errors.Zv,(e,f)=>{this.V.debug(`Subscribe to topic ${e.ja()} now that we are back online, after waiting for ${f}ms`);b()}),rxjs.operators.finalize(()=>
|
|
1484
1484
|
{this.R.add(d);rm(this,cm,{i:d}).catch(e=>{this.V.warn(`Fail to unsubscribe to graphdef ${d}: ${e}`)}).finally(()=>{this.R.has(d)&&this.O.delete(d);this.R.delete(d)})}))}return rxjs.throwError(()=>Error(`Subscription of type ${a.getType()} is not supported`))}init(a){super.init(a);ge(this.Na,olympe.Y.xj.Xq,this.ma.bind(this));return this}destroy(){return q(function*(){})}ma(a,b){const c=olympe.dc.Request.C.GF,d=olympe.dc.Request.C.KC,e=a.c;if(e===olympe.dc.Request.C.jG)Cm(this,a,b).then(f=>{tm(this,
|
|
1485
1485
|
e,f)});else if(e===c)b=this.T.C(a.p,a.i),b=ph(b,a.ct),tm(this,e,{rollback:b,error:a.error});else if(e===dm){const f=a.i;Cm(this,a,b).then(g=>{let k;null==(k=this.O.get(f))||k.next(g)})}else e===d&&tm(this,hm,{id:a.i,finalize:olympe.dc.transaction.po.C.KC,error:0<a.s?a.error:null})}ca(a,b){if(b instanceof olympe.dc.query.wb.Ht){const c=b.relation;let d;b=null!=(d=a.get(b.ja()))?d:[];return{t:c.ka(),d:c.zc()===olympe.dc.Ib.ORIGIN?1:2,v:!0,r:c.recursive,q:b.map(this.ca.bind(this,a))}}return{}}};
|
|
1486
|
-
olympe.dc.sources.gL.Aa=[olympe.dc.sources.Ly];function Dm(a,b,c){const d=new olympe.j.ee(`Source solver ${b.ka()}`);b.oc(olympe.dm.ii.O.fe()).oc(olympe.dm.ii.D).Zi().back().oc(olympe.dm.ii.C).Zi().observe(d,{Xg:c,
|
|
1486
|
+
olympe.dc.sources.gL.Aa=[olympe.dc.sources.Ly];function Dm(a,b,c){const d=new olympe.j.ee(`Source solver ${b.ka()}`);b.oc(olympe.dm.ii.O.fe()).oc(olympe.dm.ii.D).Zi().back().oc(olympe.dm.ii.C).Zi().observe(d,{Xg:c,jg:!0}).subscribe(e=>{e.lu().forEach(([f,g])=>{a.D.set(f.ka(),g.ja())});e.uu().forEach(([f])=>{a.D.delete(f)})});b.oc(olympe.dm.fd.O).observe(d,{Xg:c,jg:!0}).subscribe(e=>{let f,g;a.O=null!=(g=null==(f=e.Vd())?void 0:f.ja())?g:null});d.onDestroy(()=>{a.D.clear();a.O=null})}
|
|
1487
1487
|
olympe.dc.sources.Jz=class{constructor(a,b,c){this.db=a;this.C=b;this.T=c;this.D=new Map;this.O=null;this.R=!1}fromModel(a){a=olympe.dc.Ya(a);return this.D.has(a)?this.D.get(a):this.O&&this.W(a)?this.O:this.T}Em(a){let b;return null!=(b=this.db.source(a))?b:this.T}Sd(a){return a===this.C?olympe.dc.CloudObject.get(this.C):a===olympe.dc.Jc.SERVER?olympe.dc.CloudObject.get(olympe.dm.DataSource.SERVER):this.db.tc(a)&&this.db.me(a,olympe.dm.DataSource)?olympe.dc.CloudObject.get(a):null}W(){return!1}init(){if(!this.R){this.R=
|
|
1488
1488
|
!0;var a=new olympe.dc.Tc;Z(a.create(olympe.dm.DataSource,this.C).ne(this.C),olympe.dm.DataSource.Yt,!0);a.Qb(olympe.dm.DataSource.qx,this.C,this.C);a.Kd(()=>{olympe.dc.nb.from(this.C).observe(olympe.j.Eo()).subscribe(()=>{})})}}};olympe.dc.sources.ba={Vb:'dc.sources.Logger',kC:'dc.sources.HTTPService',sR:'dc.sources.IOService',rK:'dc.sources.RemoteProvider',LK:'dc.sources.ServerProvider',E0:'dc.sources.OfflineProvider',dl:'dc.sources.SourceSolver',cl:'dc.sources.Serializer',kG:'dc.sources.cache.Cache',lG:'dc.sources.cache.DATABASE',HB:'dc.sources.cache.Logger'};
|
|
1489
1489
|
olympe.dc.sources.pa={qt:'data.httpHost',Jp:'data.httpPort',Lv:'data.httpSSL',iC:'data.httpBasePath',SC:'data.pollingFrequency',am:'data.communicationMode',ZC:'data.restrictedUse',VERSION:'version.version',bL:'data.streamWorker',VJ:'data.queryConcurrencyLimit'};olympe.dc.sources.tt={wT:'olympe.internal.data.',qt:'olympe.internal.data.httpHost',Jp:'olympe.internal.data.httpPort',Lv:'olympe.internal.data.httpSSL'};
|
|
@@ -1591,20 +1591,20 @@ for(const [e,f]of c){var d=this.eb.Ac(b,e,!0);d instanceof olympe.dc.Kf&&zn(a,d.
|
|
|
1591
1591
|
l)&&(k===olympe.dc.Ib.ORIGIN?b.Qb(g,l,this.tag):b.Qb(g,this.tag,l))}}toString(){return`PersistOperation: tag - ${this.tag}, src - ${this.source}`}};olympe.dc.Ya=function(a){let b=null;if('string'===typeof a)return a;if('function'===typeof(null==a?void 0:a.ka)&&(null==a||!a.Gh))b=a.ka();else if('function'===typeof a){let d;b=null!=(d=olympe.dc.Ja.De(a))?d:''}else if(olympe.j.Mg(a)){let d;b=olympe.dc.Ya(null==(d=olympe.j.Qa(a))?void 0:d.valueOf())}let c;return null!=(c=b)?c:''};z('olympe.dc.instanceToTag',olympe.dc.Ya);olympe.dc.eb=function(){return olympe.dc.iN().view};olympe.dc.register=function(a,b){olympe.dc.Ja.C(a,b)};
|
|
1592
1592
|
olympe.dc.defineProperty=function(a){return new olympe.dc.Oc.Property(a)};olympe.dc.zM=function(a,b=olympe.dc.Ib.DESTINATION,c=olympe.dc.CloudObject,d=olympe.dc.Ib.DESTINATION){const e=olympe.dc.Ib.DESTINATION;return b===olympe.dc.Ib.ORIGIN||b===e?new olympe.dc.Oc.Relation(a,b):new olympe.dc.Oc.Relation(a,d,b,c)};olympe.dc.OV=function(a){return a.fe()};olympe.dc.Ad={};olympe.dc.Ad.HD=a=>'string'===typeof a||'number'===typeof a||'boolean'===typeof a||a instanceof String?olympe.j.ic(a):a instanceof olympe.j.kb?a:null;olympe.dc.Ad.ED=a=>'boolean'===typeof a||a instanceof Boolean?olympe.j.hc(a):a instanceof olympe.j.ia?a:null;olympe.dc.Ad.GD=a=>'number'===typeof a||a instanceof Number?olympe.j.Ba(a):'string'===typeof a||a instanceof String?olympe.j.Ba(Number.parseFloat(a.valueOf())):a instanceof olympe.j.aa?a:null;
|
|
1593
1593
|
olympe.dc.Ad.FD=a=>'number'===typeof a||a instanceof Number?vc(a.valueOf()):'string'===typeof a||a instanceof String?rc(a.valueOf()):a instanceof Date?uc(a):a instanceof olympe.j.ac?a:null;olympe.dc.Ad.uM=function(a){return a instanceof olympe.j.Color?a:'string'===typeof a||a instanceof String?Ec(a.valueOf()):null};olympe.dc.Ad.vM=a=>a instanceof olympe.dc.CloudObject?a:a instanceof olympe.dc.Kf?mh(a):null;olympe.dc.Ad.Hw=a=>a instanceof olympe.dc.Kf?mh(a):a;
|
|
1594
|
-
olympe.dc.Ad.ug=a=>{a=a instanceof olympe.dc.Kf?mh(a):a;let b;return null!=(b=a instanceof olympe.dc.CloudObject?a.ug():a)?b:null};olympe.dc.Ad.lW=a=>{switch(a){case olympe.j.ia:return olympe.dc.Ad.ED;case olympe.j.kb:return olympe.dc.Ad.HD;case olympe.j.aa:return olympe.dc.Ad.GD;case olympe.j.ac:return olympe.dc.Ad.FD;case olympe.j.Color:return olympe.dc.Ad.uM;case olympe.dc.CloudObject:return olympe.dc.Ad.vM;default:return olympe.dc.Ad.Hw}};olympe.dc.
|
|
1595
|
-
olympe.dc.Kb=class{constructor(a,b,c){void 0===a||null===a?olympe.gb.Cb('dc').warn('attempt to create a listdef with a null or undefind basetag. This listdef is thus without effect.'):(this.D=olympe.j.Xa([a],olympe.dc.Ya,String),this.Ra=void 0!==b&&(Array.isArray(b)?b:[b])||[],this.valueType=c||Sn(this),this.C=null,this.
|
|
1594
|
+
olympe.dc.Ad.ug=a=>{a=a instanceof olympe.dc.Kf?mh(a):a;let b;return null!=(b=a instanceof olympe.dc.CloudObject?a.ug():a)?b:null};olympe.dc.Ad.lW=a=>{switch(a){case olympe.j.ia:return olympe.dc.Ad.ED;case olympe.j.kb:return olympe.dc.Ad.HD;case olympe.j.aa:return olympe.dc.Ad.GD;case olympe.j.ac:return olympe.dc.Ad.FD;case olympe.j.Color:return olympe.dc.Ad.uM;case olympe.dc.CloudObject:return olympe.dc.Ad.vM;default:return olympe.dc.Ad.Hw}};olympe.dc.bg={};olympe.dc.Qn=class{bb(){}O(){}compare(){}R(){}fb(){}toString(){}};function Sn(a){let b=null;for(a=[...a.Ra];null===b&&0<a.length;)b=a.pop().Ee();return b}function Tn(a,b){a.W()||(a=`Calling "${b}" on subscription with id ${a.ja()} while it is not ready (thus no data is available).`+'This call should be made within an onReady callback. You can also consider to use Queries API instead of ListDefs (which are deprecated)',olympe.gb.Cb('dc').warn(a))}
|
|
1595
|
+
olympe.dc.Kb=class{constructor(a,b,c){void 0===a||null===a?olympe.gb.Cb('dc').warn('attempt to create a listdef with a null or undefind basetag. This listdef is thus without effect.'):(this.D=olympe.j.Xa([a],olympe.dc.Ya,String),this.Ra=void 0!==b&&(Array.isArray(b)?b:[b])||[],this.valueType=c||Sn(this),this.C=null,this.jg=void 0)}rk(){return olympe.dc.rk()}Kd(){if(null===this.C){const a=olympe.dc.bg.XW();this.C=Un(a,this,this.jg);null!==this.valueType&&this.C.mi(this.valueType);olympe.j.yb().Ve(()=>
|
|
1596
1596
|
{var b=this.C.ja();a.V.debug('QueryMGR: [ID:',b,'] - Unregistered');const c=a.C.get(b);if(null==c)var d=0;else 0<c.counter&&c.counter--,d=0===c.counter;d&&(c.getSubscription().kc(),a.C.delete(b));this.C=null})}return this}getSubscription(){null===this.C&&this.Kd();return this.C}mi(a){this.valueType=a;null!==this.C&&this.C.mi(this.valueType)}Ee(){return null!==this.C?this.C.Ee():null===this.valueType?olympe.dc.CloudObject:this.valueType}Cj(){return this.D}AC(){return this.Ra}Ii(a,b){return this.getSubscription().Ii(a,
|
|
1597
1597
|
b)}PA(a){this.getSubscription().PA(a)}lS(){return this.getSubscription().Pb()}kS(){return this.getSubscription().W()}get(a){return this.getSubscription().get(a)}qu(){return this.getSubscription().qu()}Fj(a){const b=this.getSubscription();Tn(b,'getCurrent');return b.Fj(a)}has(a){return this.getSubscription().has(a)}Ei(a){const b=this.getSubscription();Tn(b,'hasCurrent');return b.Ei(a)}Hh(a){return this.getSubscription().Hh(a)}dY(a){return this.Hh(a).asObservable()}ql(a){const b=this.getSubscription();
|
|
1598
1598
|
Tn(b,'getCurrentAt');return b.ql(a)}Um(a){return this.getSubscription().Um(a)}rl(a){const b=this.getSubscription();Tn(b,'getCurrentKeyAt');return b.rl(a)}gf(a){return this.getSubscription().gf(a)}iY(a){return this.gf(a).asObservable()}Hm(a){const b=this.getSubscription();Tn(b,'getCurrentRank');return b.Hm(a)}Vd(){return this.getSubscription().Vd()}eY(){return this.Vd().asObservable()}Sm(){return this.getSubscription().Sm()}Qc(){return this.getSubscription().Qc()}jY(){return this.Qc().asObservable()}aj(){const a=
|
|
1599
1599
|
this.getSubscription();Tn(a,'getCurrentSize');return a.aj()}forEach(a,b){this.getSubscription().forEach(a,b)}yi(a){const b=this.getSubscription();Tn(b,'forEachCurrentValue');return b.yi(a)}Ow(a,b,c,d){a=new olympe.dc.Ra.wt(a,b);(new olympe.dc.Kb(this.D,[...this.Ra,a],this.valueType)).forEach(c,d)}transform(...a){var b=a;if(Array.isArray(a[0])){if(1<a.length)throw Error('ListDef.transform() should be called either with one array argument, or with ... arguments, but not both');b=a[0]}a=[...this.Ra];
|
|
1600
|
-
for(const c of b){if(void 0===c)throw Error('ListDef.transform(): Trying to set an undefined transformer');if(c instanceof olympe.dc.Oc.Property)throw Error(`ListDef.transform(): Properties cannot be used as transformer, unlike relations ${c}`);if(!c||'function'!==typeof c.C)break;a.push(c)}b=new olympe.dc.Kb(this.D,a);b.
|
|
1601
|
-
null===this.valueType?void 0:this.valueType);'boolean'===typeof this.
|
|
1600
|
+
for(const c of b){if(void 0===c)throw Error('ListDef.transform(): Trying to set an undefined transformer');if(c instanceof olympe.dc.Oc.Property)throw Error(`ListDef.transform(): Properties cannot be used as transformer, unlike relations ${c}`);if(!c||'function'!==typeof c.C)break;a.push(c)}b=new olympe.dc.Kb(this.D,a);b.jg=this.jg;b.mi(Sn(b)||this.valueType||Object);return b}jy(a){return this.transform(new olympe.dc.Ra.ro(a))}filter(a){return this.transform(new olympe.dc.Ra.Qf(a))}Mr(){const a=new olympe.dc.Mp(this.D,
|
|
1601
|
+
null===this.valueType?void 0:this.valueType);'boolean'===typeof this.jg&&(a.jg=this.jg);let b=this.Ra;b instanceof Array||(b=b?[b]:[]);a.transform(b);return a}toString(){let a=this.Ra;a=a?', '+(a.join?a.join(', '):a.toString()):'';return'ListDef(#'+olympe.j.Qa(this.D)+a+')'}jS(){return this.getSubscription().jr()}og(){return olympe.j.Xa([this.Qc()],a=>{let b='[';for(let c=0;c<a;c++){const d=this.ql(c).toString();b=0<c&&c<a?b+(', '+d):b+d}return olympe.j.ic(b+']')},olympe.j.kb)}};
|
|
1602
1602
|
olympe.dc.Kb.prototype.filter=olympe.dc.Kb.prototype.filter;olympe.dc.Kb.prototype.union=olympe.dc.Kb.prototype.jy;olympe.dc.Kb.prototype.transform=olympe.dc.Kb.prototype.transform;olympe.dc.Kb.prototype.forEachCurrentValue=olympe.dc.Kb.prototype.yi;olympe.dc.Kb.prototype.forEach=olympe.dc.Kb.prototype.forEach;olympe.dc.Kb.prototype.getCurrentSize=olympe.dc.Kb.prototype.aj;olympe.dc.Kb.prototype.observeSize=olympe.dc.Kb.prototype.jY;olympe.dc.Kb.prototype.observeFirst=olympe.dc.Kb.prototype.eY;
|
|
1603
1603
|
olympe.dc.Kb.prototype.getCurrentRank=olympe.dc.Kb.prototype.Hm;olympe.dc.Kb.prototype.observeRank=olympe.dc.Kb.prototype.iY;olympe.dc.Kb.prototype.getCurrentAt=olympe.dc.Kb.prototype.ql;olympe.dc.Kb.prototype.observeAt=olympe.dc.Kb.prototype.dY;olympe.dc.Kb.prototype.offReady=olympe.dc.Kb.prototype.PA;olympe.dc.Kb.prototype.onReady=olympe.dc.Kb.prototype.Ii;olympe.dc.Kb.prototype.getBaseTag=olympe.dc.Kb.prototype.Cj;olympe.dc.Kb.Aa=[olympe.j.Ug];h=olympe.dc.Kb.prototype;h.rk.K=olympe.j.J.O;
|
|
1604
|
-
h.Kd.K=olympe.j.J.C([]);h.getSubscription.K=new olympe.j.J(()=>olympe.dc.
|
|
1604
|
+
h.Kd.K=olympe.j.J.C([]);h.getSubscription.K=new olympe.j.J(()=>olympe.dc.bg.Subscription,[]);h.mi.K=new olympe.j.J(()=>{},[]);h.Cj.K=new olympe.j.J(()=>String,[]);h.AC.K=new olympe.j.J(()=>Array,[]);h.Ii.K=new olympe.j.J(()=>String,[]);h.PA.K=new olympe.j.J(()=>{},[]);h.lS.K=olympe.j.J.T;h.kS.K=olympe.j.J.O;h.get.K=new olympe.j.J(()=>olympe.dc.CloudObject,[],'valueType');h.qu.K=new olympe.j.J(()=>Array,[]);h.Fj.K=olympe.j.J.O;h.has.K=olympe.j.J.T;h.Ei.K=olympe.j.J.O;
|
|
1605
1605
|
h.Hh.K=new olympe.j.J(()=>olympe.dc.CloudObject,[],'valueType');h.ql.K=olympe.j.J.O;h.Um.K=new olympe.j.J(()=>String,[]);h.rl.K=olympe.j.J.O;h.gf.K=olympe.j.J.D;h.Hm.K=olympe.j.J.O;h.Vd.K=new olympe.j.J(()=>olympe.dc.CloudObject,[],'valueType');h.Sm.K=new olympe.j.J(()=>String,[]);h.Qc.K=olympe.j.J.D;h.aj.K=olympe.j.J.O;h.forEach.K=new olympe.j.J(()=>{},[]);h.yi.K=olympe.j.J.O;h.Ow.K=new olympe.j.J(()=>{},[]);h.transform.K=new olympe.j.J(()=>olympe.dc.Kb,[]);
|
|
1606
1606
|
h.jy.K=new olympe.j.J(()=>olympe.dc.Kb,[]);h.filter.K=new olympe.j.J(()=>olympe.dc.Kb,[]);h.Mr.K=new olympe.j.J(()=>olympe.dc.Mp,[]);h.toString.K=olympe.j.J.O;h.jS.K=olympe.j.J.O;h.og.K=olympe.j.J.R;const Vn={AZ:'append',$B:'filter_not',NG:'filter_and',OG:'filter_or'};function Wn(a,b){a=Xn(a);a=olympe.dc.CloudObject.get(a);return(new olympe.dc.cd.tF(a,b)).D}
|
|
1607
|
-
olympe.dc.Mp=class{constructor(a,b){this.C=Xn(a);this.V=olympe.gb.Cb('dc.query');this.valueType=void 0===b?olympe.dc.CloudObject:b;this.Ra=[];this.$b=[];this.
|
|
1607
|
+
olympe.dc.Mp=class{constructor(a,b){this.C=Xn(a);this.V=olympe.gb.Cb('dc.query');this.valueType=void 0===b?olympe.dc.CloudObject:b;this.Ra=[];this.$b=[];this.jg=void 0}ek(){const a=new olympe.dc.Kb(this.C,this.Ra,this.valueType);'boolean'===typeof this.jg&&(a.jg=this.jg);return a}transform(a){for(let b=0,c=a.length,d;b<c;b++){d=a[b];if(void 0===d)throw new Yn('transform','Trying to set an undefined transformer');if(d instanceof olympe.dc.Oc.Property)throw new Yn('transform','Properties cannot be used as transformer, unlike relations '+
|
|
1608
1608
|
d);if(!d||'function'!==typeof d.C)throw new Yn('transform','one of the argument is not a Transformer '+d);const e=d.Ee();null!==e&&(this.valueType=e);this.Ra.push(d)}return this}jy(a){this.Ra.push(new olympe.dc.Ra.ro(a));return this}tZ(a){this.Ra.push(new olympe.dc.Ra.ro(Xn(a)));return this}mS(a){this.valueType=a;return this}oc(a){this.Ra.push(a);this.valueType=a.Ee()||olympe.dc.CloudObject;return this}GM(){var a=[olympe.dc.CloudObject.containsRel,olympe.dc.CloudObject.containsRel];for(const b of a)this.Ra.push(b),
|
|
1609
1609
|
this.valueType=b.Ee()||olympe.dc.CloudObject;return this}FM(a){var b=olympe.dc.CloudObject.extendRel;a=new olympe.dc.Ra.zj(b,b.zc(),olympe.dc.Ra.$C.wH,a);this.Ra.push(a);this.valueType=a.Ee()||olympe.dc.CloudObject;return this}bW(a){const b=[];let c;for(let d=0;d<a.length;d++){const e=a[d];b.push(e.ka());void 0===c&&(c=e.zc())}a=new olympe.dc.Ra.iz(b,c);this.Ra.push(a);this.valueType=a.Ee()||olympe.dc.CloudObject;return this}kJ(){this.oc(olympe.dc.CloudObject.instancesRel);return this}Dm(a){var b=
|
|
1610
1610
|
this.$b.pop();b===Vn.$B&&(a=new olympe.dc.Ca.ik(a),b=this.$b.pop());switch(b){case Vn.NG:b=this.Ra.pop().D;b instanceof olympe.dc.Ca.Ni?(b=b.Ca,b.push(a),a=new olympe.dc.Ca.Ni(...b)):a=new olympe.dc.Ca.Ni(b,a);b=this.$b.pop();break;case Vn.OG:b=this.Ra.pop().D,b instanceof olympe.dc.Ca.Wk?(b=b.Ca,b.push(a),a=new olympe.dc.Ca.Wk(...b)):a=new olympe.dc.Ca.Wk(b,a),b=this.$b.pop()}b===Vn.$B&&(a=new olympe.dc.Ca.ik(a),this.$b.pop());this.Ra.push(new olympe.dc.Ra.Qf(a));return this}YV(a,b,c){return this.Dm(new olympe.dc.Ca.Lk(Wn(a,
|
|
@@ -1614,69 +1614,69 @@ b,c))}filter(a){const b=new class extends olympe.dc.Ca.Sq{C(c,d){return a(olympe
|
|
|
1614
1614
|
c));break;case olympe.dm.Number.U.ka():d=new olympe.dc.tg.Number(new olympe.dc.cd.$v(a,c));break;case olympe.dm.DateTime.U.ka():d=new olympe.dc.tg.DateTime(new olympe.dc.cd.Bv(a,c))}c=d;null!==c&&this.Ra.push(new olympe.dc.Ra.Cr(c,b));return this}sort(a,b,c){const d=new class extends olympe.dc.tg.Sq{O(e,f){return a(olympe.dc.CloudObject.get(f))}compare(e,f){return b(e,f).valueOf()}};this.Ra.push(new olympe.dc.Ra.Cr(d,c));return this}SV(){this.Ra.push(new olympe.dc.Ra.Cv);return this}bn(a,b){this.Ra.push(new olympe.dc.Ra.wt(a,
|
|
1615
1615
|
b));return this}};class Yn extends Error{constructor(a,b){super(`ListDefBuilder.${a}(): ${b}`)}}function Xn(a){return'string'===typeof a||a instanceof olympe.j.kb?a:'function'===typeof a?olympe.dc.Ja.De(a):olympe.j.Zb(a)?a.Vt===olympe.j.kb?a:olympe.j.Xa([a],b=>olympe.j.ic(olympe.dc.Ya(b)),olympe.j.kb):a.ka()}h=olympe.dc.Mp.prototype;h.ek.K=new olympe.j.J(()=>olympe.dc.Kb,[]);h.transform.K=olympe.j.J.C([]);h.jy.K=olympe.j.J.C([]);h.tZ.K=olympe.j.J.C([]);h.mS.K=olympe.j.J.C([]);h.oc.K=olympe.j.J.C([]);
|
|
1616
1616
|
h.GM.K=olympe.j.J.C([]);h.FM.K=olympe.j.J.C([]);h.bW.K=olympe.j.J.C([]);h.kJ.K=olympe.j.J.C([]);h.Dm.K=olympe.j.J.C([]);h.YV.K=olympe.j.J.C([]);h.contains.K=olympe.j.J.C([]);h.me.K=olympe.j.J.C([]);h.JA.K=olympe.j.J.C([]);h.ZV.K=olympe.j.J.C([]);h.AX.K=olympe.j.J.C([]);h.HA.K=olympe.j.J.C([]);h.ey.K=olympe.j.J.C([]);h.YX.K=olympe.j.J.C([]);h.filter.K=olympe.j.J.C([]);h.Re.K=olympe.j.J.C([]);h.and.K=olympe.j.J.C([]);h.or.K=olympe.j.J.C([]);h.lv.K=olympe.j.J.C([]);h.sort.K=olympe.j.J.C([]);h.SV.K=olympe.j.J.C([]);
|
|
1617
|
-
h.bn.K=olympe.j.J.C([]);function Un(a,b,c){const d=b.Cj();var e=new olympe.dc.query.AT;let f;f=d;olympe.j.Zb(f)&&(f=e.add(d));b=(b=b.AC())?Array.isArray(b)?b:[b]:null;e=olympe.dc.
|
|
1618
|
-
function Zn(a,b){if(b.W())a.V.debug('ListProcessor: [ID:',b.ja(),'] - Subscription already booted, ignoring');else{a.V.debug('ListProcessor: [ID:',b.ja(),'] - Booting subscription');var c=new olympe.dc.
|
|
1617
|
+
h.bn.K=olympe.j.J.C([]);function Un(a,b,c){const d=b.Cj();var e=new olympe.dc.query.AT;let f;f=d;olympe.j.Zb(f)&&(f=e.add(d));b=(b=b.AC())?Array.isArray(b)?b:[b]:null;e=olympe.dc.bg.Subscription.O(f,b,e);let g,k,l=null!=(k=null==(g=a.C.get(e))?void 0:g.getSubscription())?k:null;null===l&&(a.V.debug('QueryMGR: new',a.D?'local':'remote','subscription "',e,'": #',`${f},`,b),l=new olympe.dc.bg.Subscription(e,d,b,a.O));l.getContext().run(()=>a.process(l,c));return l}
|
|
1618
|
+
function Zn(a,b){if(b.W())a.V.debug('ListProcessor: [ID:',b.ja(),'] - Subscription already booted, ignoring');else{a.V.debug('ListProcessor: [ID:',b.ja(),'] - Booting subscription');var c=new olympe.dc.dg.lL(a.db,a.V),d=b.ja();olympe.j.Wa([b.Cj()],e=>{const f=olympe.dc.Ya(e);a.V.debug('ListProcessor: [ID:',b.ja(),'] - Booting with baseTag',f);b.Hg()||b.cf();qh(a.db,f,$n(a,b,c),d);olympe.j.yb().Ve(()=>nh(a.db,f,d));a.db.tc(f.valueOf())||ao(c);b.W()||(ao(c),b.Eb([]))})}}
|
|
1619
1619
|
function bo(a,b,c,d,e){const f=[b.Cj()],g=m=>m instanceof olympe.dc.Ra.ro;let k;const l=(null!=(k=b.bs())?k:[]).filter(g);for(const m of l){f.push(m.Cj());let n;l.push(...(null!=(n=m.bs())?n:[]).filter(g))}olympe.j.Wa(f,()=>{const m=b.Yc(c);co(a,m,b.ja(),d,e)})}
|
|
1620
|
-
function co(a,b,c,d,e){a.V.debug('CoverageProcessor: [ID:',c,'] - checking coverage of remote query over',b.length,'paths.');const f=olympe.j.yb(),g=new olympe.async.wz(f);b.forEach(k=>{g.add((l,m)=>{let n=!1;pk(a.R,k,f,olympe.dc.Jc.SELF,olympe.dc.nb.Jf.cm,{
|
|
1621
|
-
function $n(a,b,c){const d=new olympe.dc.
|
|
1620
|
+
function co(a,b,c,d,e){a.V.debug('CoverageProcessor: [ID:',c,'] - checking coverage of remote query over',b.length,'paths.');const f=olympe.j.yb(),g=new olympe.async.wz(f);b.forEach(k=>{g.add((l,m)=>{let n=!1;pk(a.R,k,f,olympe.dc.Jc.SELF,olympe.dc.nb.Jf.cm,{jg:e}).subscribe(rxjs.Subscriber.create(()=>{n||(n=!0,f.run(l))},p=>f.run(()=>m(`The query ${c} is not covered by an existing graphdef, `+`and the specific graphdef id ${k.ja()} has encountered an error: ${p}`))))})});rd(g,(k,l)=>d(l));g.start()}
|
|
1621
|
+
function $n(a,b,c){const d=new olympe.dc.dg.vy;let e=!1;const f=olympe.j.yb(),g=b.bs(),k=[];k[g?g.length:0]=(l,m,n,p)=>{f.$f()||f.lc()||(l?b.Ei(n)?a.V.warn('Adding the same index twice (should never happen) for sub #',b.ja(),', index #',n,', tag #',m):(a.V.debug('ListProcessor: [ID:',b.ja(),'] - Adding Instance',m,'to the subscription'),b.ld(n,m)):(a.V.debug('ListProcessor: [ID:',b.ja(),'] - Removing Instance',m,'from the subscription'),b.Yh(n)),e||(eo(c,()=>{p.Up();ao(c)}),f.run(()=>p.rk().Nq(b.Eb.bind(b))),
|
|
1622
1622
|
e=!0),fo(c,n))};if(null!==g)for(let l=g.length-1;0<=l;l--)k[l]=g[l].C(f,c,k[l+1]);return(l,m)=>{const n=b.ja();c.register(n,null);const p=d.C(l,m,n,null);if(null!==p)k[0](l,m,n,go(p,l,m,n))}}
|
|
1623
|
-
olympe.dc.
|
|
1623
|
+
olympe.dc.bg.NS=class{constructor(a,b,c,d,e,f){this.V=a;this.db=b;this.D=f||e;this.R=d;this.C=new Map;this.O=new olympe.j.ee('Legacy ListDef processor')}process(a,b){const c=a.ja();var d=this.C.get(c);d||(d=new olympe.dc.bg.xU(a),this.C.set(c,d));d.counter++;ho(d)?this.V.debug('ListProcessor: [ID:',c,'] - id already processed'):(this.V.debug('ListProcessor: [ID:',c,'] - NOT processed yet.'),d=a.vg(),b||this.D&&d===olympe.dc.Jc.SERVER||d===olympe.dc.Jc.SELF?(this.V.debug('QueryMGR: [ID:',c,'] - Local subscription, no need for coverage check, booting subscription '),
|
|
1624
1624
|
Zn(this,a)):bo(this,a,d,e=>{e?this.V.error(e):Zn(this,a)},b))}};function io(a){return olympe.j.Zb(a)?'Node#'+a.Tb.ja():String(a)}function jo(a,b){return olympe.j.Zb(b)?'{"c":"Parameter","v":"'+a.add(b)+'"}':JSON.stringify(b)}
|
|
1625
|
-
olympe.dc.query.AT=class{constructor(){this.uid=0;this.values=null}add(a){let b;b=olympe.j.Zb(a)?'n'+a.Tb.ja():'p'+ ++this.uid;null===this.values&&(this.values={});this.values[b]=a;return b}get(a){return this.values[a]}clear(){const a=this.values;if(null!==a)for(let b=Object.keys(a),c=b.length,d=0;d<c;d++)delete a[b[d]]}forEach(a){const b=this.values;if(null!==b)for(let c=Object.keys(b),d=c.length,e=0;e<d;e++)a(b[c[e]],c[e])}};olympe.dc.Yb=class{bb(){}C(){}D(){}fb(){}toString(){}};olympe.dc.
|
|
1626
|
-
olympe.dc.Kj(),c=olympe.j.Qa(this.Cj());let d;return olympe.dc.CloudObject.instancesRel.Rb(null==(d=this.Ra)?void 0:d[0])?b.fromModel(c):b.Em(c)}Hg(){const b=olympe.j.Qa(this.O);return b&&b.valueOf()>=olympe.dc.
|
|
1627
|
-
()=>{},olympe.j.ia)}W(){const b=F(this.O);return b&&b.valueOf()>=olympe.dc.
|
|
1625
|
+
olympe.dc.query.AT=class{constructor(){this.uid=0;this.values=null}add(a){let b;b=olympe.j.Zb(a)?'n'+a.Tb.ja():'p'+ ++this.uid;null===this.values&&(this.values={});this.values[b]=a;return b}get(a){return this.values[a]}clear(){const a=this.values;if(null!==a)for(let b=Object.keys(a),c=b.length,d=0;d<c;d++)delete a[b[d]]}forEach(a){const b=this.values;if(null!==b)for(let c=Object.keys(b),d=c.length,e=0;e<d;e++)a(b[c[e]],c[e])}};olympe.dc.Yb=class{bb(){}C(){}D(){}fb(){}toString(){}};olympe.dc.bg.Subscription=class a extends olympe.j.py{constructor(b,c,d,e){super(olympe.dc.CloudObject,new olympe.j.ee('context subscription '+b,e));this.id=b;this.qc=c;this.Ra=d||null;this.O=this.T.run(()=>olympe.j.la(olympe.dc.bg.Subscription.C.INIT));this.xb=!1;this.ca=this.ob=null}static O(b,c,d){let e;try{e=b;if(c)for(let f=0,g=c.length;f<g;f++)e+='|'+c[f].fb(d);else e+='|null';e=olympe.oa.Xd(e)}catch(f){e=olympe.oa.bf()}return e}ja(){return this.id}Cj(){return this.qc}bs(){return this.Ra}vg(){const b=
|
|
1626
|
+
olympe.dc.Kj(),c=olympe.j.Qa(this.Cj());let d;return olympe.dc.CloudObject.instancesRel.Rb(null==(d=this.Ra)?void 0:d[0])?b.fromModel(c):b.Em(c)}Hg(){const b=olympe.j.Qa(this.O);return b&&b.valueOf()>=olympe.dc.bg.Subscription.C.cL}cf(){if(this.O.Tb.lc())throw Error(`Cannot set destroyed subscription '${this.id}' as subscribed`);const b=this.ob;this.ob=null;for(let c in b)if(Object.prototype.hasOwnProperty.call(b,c))b[c](this);K(this.O,olympe.j.la(olympe.dc.bg.Subscription.C.cL))}Pb(){return olympe.j.Xa([this.O],
|
|
1627
|
+
()=>{},olympe.j.ia)}W(){const b=F(this.O);return b&&b.valueOf()>=olympe.dc.bg.Subscription.C.Dt}Ii(b,c){this.W()?b(this):(null===this.ca&&(this.ca=new Map),void 0===c&&(c=olympe.oa.bf()),this.ca.set(c,olympe.j.yb().re(b)));return c||''}PA(b){null!==this.ca&&b&&this.ca.delete(b)}sb(){const b=olympe.dc.bg.Subscription.C.Dt;if(!this.O.Tb.lc()&&olympe.j.Qa(this.O)!==b&&(this.uo(),K(this.O,b),null!==this.ca)){for(const c of this.ca.values())c(this);this.ca=null}}onDestroy(b){this.T.onDestroy(b)}kc(){this.T.destroy()}Eb(b){if(!this.O.Tb.lc()){for(let c=
|
|
1628
1628
|
0,d=b.length;c<d;c++)this.Wz(b[c],c);if(this.W())this.uo();else{this.xb=b=!0;for(let c in this.D)if(Object.prototype.hasOwnProperty.call(this.D,c)&&!Object.prototype.hasOwnProperty.call(this.values,c)){b=!1;break}b&&this.sb()}}}ld(b,c){if(!this.O.Tb.lc()&&(this.Vz(b,olympe.dc.CloudObject.get(c)),b=this.W(),this.xb&&!b)){b=!0;for(let d in this.D)if(Object.prototype.hasOwnProperty.call(this.D,d)&&!Object.prototype.hasOwnProperty.call(this.values,d)){b=!1;break}b&&this.sb()}}Yh(b){this.O.Tb.lc()||(this.wD(b),
|
|
1629
|
-
this.uw(b,!this.W()))}jr(){return this.W()?super.jr():'Subscription is not ready!'}Yc(b){const c=olympe.j.Qa(this.Cj());return olympe.dc.
|
|
1630
|
-
olympe.dc.Ra.ro)e=a.D(olympe.j.Qa(e.Cj()),c,e.bs()),b.push(...e);else if(e instanceof olympe.dc.Ra.Qf||e instanceof olympe.dc.Ra.Cr){const k=e.O();b=b.map(l=>{for(const m of k){for(const n of m)l=n.recursive?l.Yp(n,!0,!0):l.oc(n,!0);l=l.back(m.length)}return l})}return b}};olympe.dc.
|
|
1629
|
+
this.uw(b,!this.W()))}jr(){return this.W()?super.jr():'Subscription is not ready!'}Yc(b){const c=olympe.j.Qa(this.Cj());return olympe.dc.bg.Subscription.D(c,b,this.bs())}static D(b,c,d){var e=olympe.dc.nb.from(b,c).Zi();if(null===d)return[e];b=[];b.push(e);for(let f=0,g=d.length;f<g;f++)if(e=d[f],e instanceof olympe.dc.Ra.um){const k=olympe.dc.query.Relation.from(e);b=b.map(l=>l.oc(k,!0))}else if(e instanceof olympe.dc.Ra.zj){const k=olympe.dc.query.Relation.from(e);b=b.map(l=>l.Yp(k,!0,!0))}else if(e instanceof
|
|
1630
|
+
olympe.dc.Ra.ro)e=a.D(olympe.j.Qa(e.Cj()),c,e.bs()),b.push(...e);else if(e instanceof olympe.dc.Ra.Qf||e instanceof olympe.dc.Ra.Cr){const k=e.O();b=b.map(l=>{for(const m of k){for(const n of m)l=n.recursive?l.Yp(n,!0,!0):l.oc(n,!0);l=l.back(m.length)}return l})}return b}};olympe.dc.bg.Subscription.C={INIT:0,cL:1,Dt:2};olympe.dc.bg.Subscription.prototype.jr.K=olympe.j.J.O;function ho(a){const b=a.C;a.C=!0;return b}olympe.dc.bg.xU=class{constructor(a){this.counter=0;this.C=!1;this.D=a}getSubscription(){return this.D}};olympe.dc.qo=class{bb(){}Ee(){}C(){}fb(){}toString(){}};olympe.dc.iK=class{O(){}};olympe.dc.Rz=class{bb(){}getValue(){}C(){}fb(){}toString(){}};olympe.dc.tg={};let ko=0;olympe.dc.tg.Sq=class{constructor(){this.id=ko++}bb(){return'CustomLocalComparator#'+ko}R(){return[]}O(){throw Error('GetComparedValue function was not implemented.');}compare(){throw Error('Compare function was not implemented.');}fb(){return`{"c":"${this.bb()}"}`}toString(){return this.bb()+'()'}};olympe.dc.tg.Sq.Aa=[olympe.dc.Qn];olympe.dc.tg.DateTime=class{constructor(a){this.C=a}bb(){return Lh(olympe.dc.tg.DateTime)}R(){return this.C.C()}O(a,b){return this.C.getValue(a,b)}compare(a,b){if(!a)return b?-1:0;if(!b)return 1;a=a.getTime();b=b.getTime();return a!==b?a>b?1:-1:0}fb(a){return'{"c":"'+this.bb()+'",a:['+this.C.fb(a)+']}'}toString(){return'Number('+this.C.toString()+')'}};X('olympe.dc.comparators.DateTime',olympe.dc.tg.DateTime);olympe.dc.tg.DateTime.Aa=[olympe.dc.Qn];olympe.dc.tg.Number=class{constructor(a){this.C=a}bb(){return Lh(olympe.dc.tg.Number)}R(){return this.C.C()}O(a,b){return this.C.getValue(a,b)}compare(a,b){return a!==b?a>b?1:-1:0}fb(a){return`{"c":"${this.bb()}",a:[${this.C.fb(a)}]}`}toString(){return`Number(${this.C.toString()})`}};X('olympe.dc.comparators.Number',olympe.dc.tg.Number);olympe.dc.tg.Number.Aa=[olympe.dc.Qn];olympe.dc.tg.String=class{constructor(a){this.C=a}bb(){return Lh(olympe.dc.tg.String)}R(){return this.C.C()}O(a,b){return olympe.j.Xa([this.C.getValue(a,b)],c=>c.toLowerCase(),olympe.j.kb)}compare(a,b){return void 0===a?void 0===b?0:1:a!==b?a>b?1:-1:0}fb(a){return`{"c":"${this.bb()}",a:[${this.C.fb(a)}]}`}toString(){return`String(${this.C.toString()})`}};X('olympe.dc.comparators.String',olympe.dc.tg.String);olympe.dc.tg.String.Aa=[olympe.dc.Qn];olympe.dc.Ca={};let lo=0;olympe.dc.Ca.Sq=class{constructor(){this.id=lo++}bb(){return'CustomLocalPredicate#'+this.id}D(){return[]}C(){throw Error('Test function was not implemented.');}fb(){return`{"c":"${this.bb()}"}`}toString(){return this.bb()+'()'}};olympe.dc.Ca.Sq.Aa=[olympe.dc.Yb];olympe.dc.Ca.yB=class{constructor(a,b){this.O=a;this.R=b}bb(){}D(){return[this.O.C(),this.R.C()]}C(a,b){return a.run(()=>olympe.j.Xa([this.O.getValue(a,b),this.R.getValue(a,b)],(c,d)=>{c=c.valueOf();d=d.valueOf();return olympe.j.hc(this.T('string'===typeof c?c:Number(c),'string'===typeof d?d:Number(d)))},olympe.j.ia))}T(){}fb(a){return'{"c":"'+this.bb()+'","a":['+this.O.fb(a)+','+this.R.fb(a)+']}'}toString(){return this.bb().replace(/^.+\./,'')+'('+this.O.toString()+','+this.R.toString()+')'}};
|
|
1631
1631
|
olympe.dc.Ca.yB.Aa=[olympe.dc.Yb];olympe.dc.Ca.Ni=class{constructor(a){this.Ca=[];for(let b=arguments.length,c=0;c<b;c++)Array.isArray(arguments[c])?this.Ca=this.Ca.concat(arguments[c]):this.Ca.push(arguments[c])}bb(){return Lh(olympe.dc.Ca.Ni)}D(){return this.Ca.reduce((a,b)=>a.concat(b.D()),[])}C(a,b){return a.run(()=>olympe.j.Xa(this.Ca.map(c=>c.C(a,b)),(...c)=>olympe.j.hc(c.every(d=>d.valueOf())),olympe.j.ia))}fb(a){const b=this.Ca.map(c=>c.fb(a));return'{"c":"'+this.bb()+'","a":['+b.join(',')+']}'}toString(){return'And('+this.Ca.map(a=>
|
|
1632
1632
|
a.toString()).join(',')+')'}};X('olympe.dc.predicates.And',olympe.dc.Ca.Ni);olympe.dc.Ca.Ni.Aa=[olympe.dc.Yb];olympe.dc.Ca.FB=class{constructor(a,b){this.Oj=a;this.value=b}C(a,b){return a.run(()=>olympe.j.Xa([this.Oj,this.value.getValue(a,b)],(c,d)=>{c=c.valueOf();return olympe.j.hc((Number(c)&Number(d.valueOf()))===Number(c))},olympe.j.ia))}bb(){return Lh(olympe.dc.Ca.FB)}D(){return[this.value.C()]}fb(a){const b=olympe.j.Zb(this.Oj)?F(this.Oj).valueOf():this.Oj.valueOf();return'{"c":"'+this.bb()+'","a":['+b+','+this.value.fb(a)+']}'}toString(){const a=olympe.j.Zb(this.Oj)?F(this.Oj).valueOf():this.Oj.valueOf();
|
|
1633
1633
|
return this.bb().replace(/^.+\./,'')+'('+a.toString()+','+this.value.toString()+')'}};X('olympe.dc.predicates.BitMask',olympe.dc.Ca.FB);olympe.dc.Ca.FB.Aa=[olympe.dc.Yb];olympe.dc.Ca.Sn=class{constructor(a,b,c){this.source=a;this.value=b;this.O=c?c:!1}bb(){return Lh(olympe.dc.Ca.Sn)}D(){return[this.source.C(),this.value.C()]}Sd(){return this.source}getValue(){return this.value}C(a,b){return a.run(()=>olympe.j.Xa([this.source.getValue(a,b),this.value.getValue(a,b),this.O],(c,d,e)=>{c=String(c);d=String(d);e.valueOf()||(c=c.toLowerCase(),d=d.toLowerCase());return olympe.j.hc(c.includes(d))},olympe.j.ia))}fb(a){const b=this.source.fb(a),c=this.value.fb(a);a=jo(a,this.O);
|
|
1634
1634
|
return'{"c":"'+this.bb()+'","a":['+b+','+c+','+a+']}'}toString(){const a=io(this.O);return'Contains('+this.source.toString()+','+this.value.toString()+','+a+')'}};X('olympe.dc.predicates.Contains',olympe.dc.Ca.Sn);olympe.dc.Ca.Sn.Aa=[olympe.dc.Yb];olympe.dc.Ca.Lk=class{constructor(a,b){this.O=a;this.R=b}bb(){return Lh(olympe.dc.Ca.Lk)}D(){return[this.O.C(),this.R.C()]}C(a,b){return a.run(()=>olympe.j.Xa([this.O.getValue(a,b),this.R.getValue(a,b)],(c,d)=>'object'===typeof c&&void 0!==c.Se?c.Se(d):'object'===typeof d&&void 0!==d.Se?d.Se(c):olympe.j.hc(c.valueOf()===d.valueOf()),olympe.j.ia,'Test equal predicate'))}fb(a){return'{"c":"'+this.bb()+'","a":['+this.O.fb(a)+','+this.R.fb(a)+']}'}toString(){return'Equals('+this.O.toString()+','+this.R.toString()+
|
|
1635
1635
|
')'}};X('olympe.dc.predicates.Equals',olympe.dc.Ca.Lk);olympe.dc.Ca.Lk.Aa=[olympe.dc.Yb];olympe.dc.Ca.HQ=class extends olympe.dc.Ca.Lk{constructor(a,b){super(a,new olympe.dc.cd.gm(b))}};olympe.dc.Ca.HQ.Aa=[olympe.dc.Yb];olympe.dc.Ca.Vy=class extends olympe.dc.Ca.yB{constructor(a,b){super(a,b)}bb(){return Lh(olympe.dc.Ca.Vy)}T(a,b){return a>b}};X('olympe.dc.predicates.Greater',olympe.dc.Ca.Vy);olympe.dc.Ca.rt=class{constructor(a,b,c){this.md=[];this.O=c instanceof Array?c:void 0!==c?[olympe.dc.Ya(c)]:[];a=Array.isArray(a)?a:[a];for(let d=0,e=a.length;d<e;d++)c=a[d],c instanceof olympe.dc.Ra.zj?this.md.push(new mo(c.ka(),c.zc(),c.O,c.D)):this.md.push(new mo(olympe.dc.Ya(c),b[d],1,1))}bb(){return Lh(olympe.dc.Ca.rt)}D(){return[this.md.reduce((a,b)=>a.concat(b),[])]}C(a,b){const c=a.run(()=>M(olympe.j.Za(Boolean),!1)),d=olympe.oa.bf(),e=olympe.dc.eb();let f=0;a=(k,l)=>{0!==this.O.length&&
|
|
1636
|
-
!this.O.includes(l)||c.getContext().lc()||c.getContext()
|
|
1636
|
+
!this.O.includes(l)||c.getContext().lc()||c.getContext().$f()||(f+=k?1:-1,c.update(0<f))};const g=this.md;for(let k=g.length-1;0<=k;k--)a=no(g[k],e,a,d+k);qh(e,b,a,d);c.getContext().onDestroy(()=>{nh(e,b,d)});return c.wa()}fb(){return'{"c":"'+this.bb()+'","a":['+JSON.stringify(this.md.map(a=>a.fb()))+(0!==this.O.length?',"'+this.O.toString():'')+'"]}'}toString(){return'HasRelated('+(0!==this.O.length?'#'+this.O.toString()+', ':'')+this.md.map(a=>a.fb())+')'}};X('olympe.dc.predicates.HasRelated',olympe.dc.Ca.rt);
|
|
1637
1637
|
function no(a,b,c,d){const e=Object.create(null);d+=olympe.oa.pk();const f=(g,k,l)=>{l>=a.D&&c(g,k);if(!(0<=a.C&&l>=a.C)){var m=d+l;g?e[k]||(e[k]=!0,Ui(b,k,a,(n,p)=>{f(n,p,l+1)},m)):(delete e[k],b.D(k,a,m))}};return(g,k)=>f(g,k,0)}class mo extends olympe.dc.query.Relation{constructor(a,b,c,d){super(a,b,1!==c||1!==d);this.D=c;this.C=d}fb(){return`${this.ka()}, ${this.zc()}, ${this.D}, ${this.C}`}}olympe.dc.Ca.rt.Aa=[olympe.dc.Yb];olympe.dc.Ca.mC=class{constructor(a,b,c){this.md=[];this.O=void 0!==c?c.map(olympe.dc.Ya):null;a=Array.isArray(a)?a:[a];for(let d=0,e=a.length;d<e;d++)c=a[d],c instanceof olympe.dc.Ra.zj?this.md.push(new oo(c.ka(),c.zc(),c.O,c.D)):this.md.push(new oo(olympe.dc.Ya(c),b[d],1,1))}bb(){return Lh(olympe.dc.Ca.mC)}D(){return[this.md.reduce((a,b)=>a.concat(b),[])]}C(a,b){const c=a.run(()=>M(olympe.j.Za(Boolean),!1)),d=olympe.dc.eb(),e=olympe.oa.pk();let f=(l,m,n)=>{m&&(null===this.O||this.O.includes(n))&&
|
|
1638
|
-
l(1)};const g=this.md;for(let l=g.length-1;0<=l;l--)f=po(g[l],d,f,e+l);let k=0;qh(d,b,f.bind(null,l=>{c.getContext()
|
|
1638
|
+
l(1)};const g=this.md;for(let l=g.length-1;0<=l;l--)f=po(g[l],d,f,e+l);let k=0;qh(d,b,f.bind(null,l=>{c.getContext().$f()||c.getContext().lc()||(k+=l,c.update(0<k))}),e);a.onDestroy(()=>nh(d,b,e));return c.wa()}fb(){return'{"c":"'+this.bb()+'","a":['+JSON.stringify(this.md.map(a=>a.fb()))+(null!==this.O?',"'+this.O.toString():'')+'"]}'}toString(){return'HasRelatedTree('+(null!==this.O?'#['+this.O.toString()+'], ':'')+this.md.map(a=>a.fb())+')'}};X('olympe.dc.predicates.HasRelatedTree',olympe.dc.Ca.mC);
|
|
1639
1639
|
function po(a,b,c,d){const e=a.O,f=a.T,g=new Set,k=(m,n,p)=>{f.has(n)?f.get(n).set(d+p,m):f.set(n,(new Map).set(d+p,m))},l=(m,n,p,r,t)=>{const u=olympe.oa.pk();if(r){const v=p+t,w=x=>{const y=f.get(t);if(g.has(v))throw Error(`Try to use the predicate HasRelatedTree with recursion in a graph cluster containing a loop around instances ${p} and ${t}`);void 0!==y&&null!==y&&(g.add(v),e.set(t,(e.get(t)||0)+x),Array.from(y.values()).forEach(A=>A(x)));g.delete(v)};k(m,t,p);e.has(t)?m(e.get(t)):(n>=a.D&&
|
|
1640
1640
|
c(x=>{e.set(t,(e.get(t)||0)+x);m(x)},r,t),(0>a.C||n<=a.C)&&t!==p&&Ui(b,t,a,l.bind(a,w,n+1,t),u))}else m(-e.get(t)),f.get(t).delete(d+p),0===f.get(t).size&&(e.delete(t),f.delete(t),b.D(t,a,u))};return(m,n,p)=>l(m,0,'origin',n,p)}class oo extends olympe.dc.query.Relation{constructor(a,b,c,d){super(a,b,1!==c||1!==d);this.D=c;this.C=d;this.T=new Map;this.O=new Map}fb(){return`${this.ka()}, ${this.zc()}, ${this.D}, ${this.C}`}}olympe.dc.Ca.mC.Aa=[olympe.dc.Yb];olympe.dc.Ca.Pv=class{constructor(a){this.O=new Set;a instanceof Array?a.forEach(b=>{this.O.add(olympe.dc.Ya(b))}):this.O.add(olympe.dc.Ya(a))}bb(){return Lh(olympe.dc.Ca.Pv)}D(){return[]}C(a,b){const c=a.run(()=>M(olympe.j.Za(olympe.j.ia),olympe.j.ia.pb)),d=olympe.dc.eb();let e=[];const f=()=>{e.forEach(k=>{d.D(k.tag,k.relation,k.id)});e=[]},g=(k,l)=>{if(k)if(l===olympe.dc.Ya(olympe.dc.CloudObject))c.update(olympe.j.hc(this.O.has(l))),f();else{for(const m of e)if(m.tag===l)throw Error(`You should never extend a model to itself (${l})`);
|
|
1641
1641
|
this.O.has(l)?(c.update(olympe.j.ia.C),f()):(k=new qo(l,olympe.dc.CloudObject.extendRel),e.push(k),Ui(d,k.tag,k.relation,g,k.id))}};a=new qo(b,olympe.dc.CloudObject.modelRel);e.push(a);Ui(d,a.tag,a.relation,g,a.id);c.getContext().onDestroy(f);return c.wa()}fb(){return'{"c":"'+this.bb()+'","a":['+JSON.stringify(Array.from(this.O))+']}'}toString(){return'InstanceOf('+Array.from(this.O).join(', ')+')'}};class qo{constructor(a,b){this.tag=a;this.relation=b;this.id=olympe.oa.pk()}}
|
|
1642
1642
|
X('olympe.dc.predicates.InstanceOf',olympe.dc.Ca.Pv);olympe.dc.Ca.Pv.Aa=[olympe.dc.Yb];olympe.dc.Ca.ik=class{constructor(a){this.O=a}bb(){return Lh(olympe.dc.Ca.ik)}D(){return this.O.D()}C(a,b){return a.run(()=>olympe.j.Xa([this.O.C(a,b)],c=>olympe.j.hc(!c.valueOf()),olympe.j.ia))}fb(a){return`{"c":"${this.bb()}","a":[${this.O.fb(a)}]}`}toString(){return'Not('+this.O.toString()+')'}};X('olympe.dc.predicates.Not',olympe.dc.Ca.ik);olympe.dc.Ca.ik.Aa=[olympe.dc.Yb];olympe.dc.Ca.Wk=class{constructor(a){this.Ca=[];for(let b=arguments.length,c=0;c<b;c++)Array.isArray(arguments[c])?this.Ca=this.Ca.concat(arguments[c]):this.Ca.push(arguments[c])}bb(){return Lh(olympe.dc.Ca.Wk)}D(){return this.Ca.reduce((a,b)=>a.concat(b.D()),[])}C(a,b){return a.run(()=>olympe.j.Xa(this.Ca.map(c=>c.C(a,b)),(...c)=>olympe.j.hc(c.some(d=>d.valueOf())),olympe.j.ia))}fb(a){const b=this.Ca.map(c=>c.fb(a));return'{"c":"'+this.bb()+'","a":['+b.join(',')+']}'}toString(){return'Or('+this.Ca.map(a=>
|
|
1643
1643
|
a.toString()).join(',')+')'}};X('olympe.dc.predicates.Or',olympe.dc.Ca.Wk);olympe.dc.Ca.Wk.Aa=[olympe.dc.Yb];olympe.dc.Ca.mo=class{constructor(a,b,c){this.source=a;this.R=b;this.O=void 0===c?!0:c}bb(){return Lh(olympe.dc.Ca.mo)}D(){return[this.source.C()]}Sd(){return this.source}C(a,b){return a.run(()=>olympe.j.Xa([this.source.getValue(a,b),this.R,this.O],(c,d,e)=>{c=String(c);d=String(d);e.valueOf()||(c=c.toLowerCase(),d=d.toLowerCase());return olympe.j.hc((new RegExp(d)).test(c))},olympe.j.ia))}fb(a){const b=this.source.fb(a),c=jo(a,this.R);a=jo(a,this.O);return'{"c":"'+this.bb()+'","a":['+b+','+c+','+
|
|
1644
|
-
a+']}'}toString(){const a=io(this.O);return'Regex('+this.source.toString()+','+this.R+','+a+')'}};X('olympe.dc.predicates.Regex',olympe.dc.Ca.mo);olympe.dc.Ca.mo.Aa=[olympe.dc.Yb];olympe.dc.Ca.Iz=class extends olympe.dc.Ca.yB{constructor(a,b){super(a,b)}bb(){return Lh(olympe.dc.Ca.Iz)}T(a,b){return a<b}};X('olympe.dc.predicates.Smaller',olympe.dc.Ca.Iz);olympe.dc.
|
|
1645
|
-
[];null!==this.item&&(0<=this.D?ro(so(this.item,this.D),a):a.push(this.R));this.W(a)}}Nq(a){this.W=a}};olympe.dc.
|
|
1644
|
+
a+']}'}toString(){const a=io(this.O);return'Regex('+this.source.toString()+','+this.R+','+a+')'}};X('olympe.dc.predicates.Regex',olympe.dc.Ca.mo);olympe.dc.Ca.mo.Aa=[olympe.dc.Yb];olympe.dc.Ca.Iz=class extends olympe.dc.Ca.yB{constructor(a,b){super(a,b)}bb(){return Lh(olympe.dc.Ca.Iz)}T(a,b){return a<b}};X('olympe.dc.predicates.Smaller',olympe.dc.Ca.Iz);olympe.dc.dg={};olympe.dc.dg.vy=class{constructor(){this.W=this.item=this.R=this.D=null}T(){return null!==this.D}$(a){if(null!==this.D)throw Error('Manager already activated (depth='+this.D+')');this.D=a;this.O()}C(a,b,c){b=this.item;if(a&&null!==b)throw Error('The AutoManger handles only a single item.');a?(b=new olympe.dc.dg.Ny(this),this.R=c,this.item=b):this.item=this.R=null;return b}O(){if(null===this.D)throw Error('Manager not activated, need to set a depth before updating ranks');if(null!==this.W){const a=
|
|
1645
|
+
[];null!==this.item&&(0<=this.D?ro(so(this.item,this.D),a):a.push(this.R));this.W(a)}}Nq(a){this.W=a}};olympe.dc.dg.vy.Aa=[olympe.dc.dg.Cc];function go(a,b,c,d){b?a.T[d]=c:delete a.T[d];null===a.D&&(a.D=new olympe.dc.dg.Ny(a.Na,a));return a.D}function so(a,b){for(let c=0;c<b;c++)if(null!==a.D)a=a.D;else break;return a}function ro(a,b){a=a.T;if(null!==a)for(let c in a)Object.prototype.hasOwnProperty.call(a,c)&&b.push(c)}olympe.dc.dg.Ny=class{constructor(a,b){this.Na=a;this.parent=b||null;this.depth=b?b.depth+1:0;this.T=Object.create(null);this.D=null}rk(){return this.Na}Up(){this.Na.T()?this.Na.O():this.Na.$(this.depth-1)}};class to extends olympe.dc.dg.Ny{constructor(a,b,c){super(a);this.R=b;this.tag=c;this.$=this.W=this.O=!1;this.C=null}}
|
|
1646
1646
|
function uo(a,b,c,d,e){const f=Object.create(null),g=a.ma,k=a.R;let l,m,n;a.da=!0;m=0;for(n=g.length;m<n;m++)f[g[m]]=null;g.length=0;m=c;for(n=Math.min(b.length,d);m<n;m++)l=b[m],c=k[l],void 0!==c&&(delete f[l],g.push(l),c.O||(c.O=!0,e(!0,c.tag,c.R,c)));for(l in f)Object.prototype.hasOwnProperty.call(f,l)&&(c=k[l],c.O&&(c.O=!1,e(!1,c.tag,c.R,c)),c.W&&(c.C=null,delete k[l]),delete f[l]);a.da=!1;null!==a.D&&a.O()}
|
|
1647
|
-
olympe.dc.
|
|
1648
|
-
e.C&&ro(e.C,this.W)}}this.ca&&this.ca(this.W)}}Nq(a){this.ca=a}C(a,b,c){let d=this.R[c];a?void 0===d?(d=new to(this,c,b),this.R[c]=d):(d.tag=b,d.W=!1):void 0!==d&&(d.W=!0);return d}};olympe.dc.
|
|
1649
|
-
class xo extends olympe.dc.
|
|
1647
|
+
olympe.dc.dg.IC=class{constructor(){this.R={};this.ma=[];this.D=null;this.da=!1;this.W=[];this.ca=null}T(){return null!==this.D}$(a){if(null!==this.D)throw Error('Manager already activated (depth='+this.D+')');this.D=a;this.O()}O(){if(null===this.D)throw Error('Manager not activated, need to set a depth before updating ranks');if(!this.da){var a=this.ma,b=a.length,c=this.R,d;for(d=this.W.length=0;d<b;d++){var e=c[a[d]];if(0>this.D)this.W.push(e.R);else{if(!e.$){var f=e,g=this.D;f.$=!0;f.C=so(f,g)}null!==
|
|
1648
|
+
e.C&&ro(e.C,this.W)}}this.ca&&this.ca(this.W)}}Nq(a){this.ca=a}C(a,b,c){let d=this.R[c];a?void 0===d?(d=new to(this,c,b),this.R[c]=d):(d.tag=b,d.W=!1):void 0!==d&&(d.W=!0);return d}};olympe.dc.dg.IC.Aa=[olympe.dc.dg.Cc];olympe.dc.dg.Cc=class{constructor(){}C(){}T(){}$(){}O(){}Nq(){}};function vo(a,b){olympe.j.Mg(a.value)?(a.C=olympe.j.cg(a.value,b),Sb(a.C)||b()):b()}function wo(a,b){if(olympe.j.Mg(a.value)){const c=olympe.j.yb(),d=a.R;olympe.j.Wa([a.value],e=>{d!==e.valueOf()&&(c.run(()=>vo(a,b)),olympe.j.yb().destroy())})}}
|
|
1649
|
+
class xo extends olympe.dc.dg.Ny{constructor(a,b,c){super(a);this.$=b;this.value=c;this.R=this.Qa();this.position=this.C=null;this.W=!1;this.O=null}Qa(){const a=olympe.j.Qa(this.value);return a?a.valueOf():a}destroy(){this.C&&(this.C.destroy(),this.C=null);this.O=this.value=null}lc(){return null===this.value}}
|
|
1650
1650
|
function yo(a,b){if(!b.lc()){var c=a.D;var d=a.ma,e=b.Qa(),f=0;let g=c.length,k=0,l;for(null!==b.position&&--g;g>f;){k=Math.floor((f+g)/2);l=d(c[k].R,e);if(0===l||2>g-f){0>l&&null!==b.position&&b.position<=k&&(l=d(c[g].R,e));k=0>l?g:k;break}0>l?f=k:g=k}c=k;b.R=b.Qa();if(c!==b.position){d=a.D;e=d.length;f=b.position;null===f&&(f=e);if(c<f)for(e=f;e>c;e--)d[e]=d[e-1],d[e].position=e;else for(e=f;e<c;e++)d[e]=d[e+1],d[e].position=e;d[c]=b;d[c].position=c;b.W&&a.O()}}}
|
|
1651
1651
|
function zo(a){const b=a.ma;a.D.sort((c,d)=>b(c.Qa(),d.Qa()))}
|
|
1652
|
-
olympe.dc.
|
|
1652
|
+
olympe.dc.dg.iL=class{constructor(a){this.ma=a;this.R=null;this.D=[];this.W=[];this.ca=null;this.da=new Map}C(a,b,c,d){b='$'+c;const e=this.D;let f;if(a)f=new xo(this,c,d),this.da.set(b,f),this.T()?vo(f,()=>yo(this,f)):(f.position=e.length,e.push(f));else{f=this.da.get(b);if(void 0===f)throw Error('Trying to remove an non-registered item: "'+c+'"');this.da.delete(b);null!==f.position&&(this.T()?this.remove(f):delete e[f.position]);f.destroy()}return f}T(){return null!==this.R}$(a){if(null!==this.R)throw Error('Manager already activated (depth='+
|
|
1653
1653
|
this.R+')');this.R=a;zo(this);for(let b=0,c=this.D.length;b<c;b++){const d=this.D[b];d.position=b;wo(d,()=>yo(this,d))}this.O()}O(){if(null===this.R)throw Error('Manager not activated, need to set a depth before updating ranks');const a=this.D.length;this.W.length=0;for(let d=0;d<a;d++){let e=this.D[d];if(!e.W){var b=e,c=this.R;b.W=!0;b.O=so(b,c)}0>this.R?this.W.push(e.$):e.O&&ro(e.O,this.W)}this.ca&&this.ca(this.W)}Nq(a){this.ca=a}remove(a){const b=this.D,c=b.length-1;if(null!==a.position){for(a=
|
|
1654
|
-
a.position;a<c;a++)b[a]=b[a+1],b[a].position=a;b.length=c}}};olympe.dc.
|
|
1654
|
+
a.position;a<c;a++)b[a]=b[a+1],b[a].position=a;b.length=c}}};olympe.dc.dg.iL.Aa=[olympe.dc.dg.Cc];function ao(a){if(!a.D){for(let b in a.O)Ao(a.O[b]);a.D=!0}a.R=null;a.T=null}function eo(a,b,c){a.O[c||'root'].R=b}function fo(a,b,c){a.O[c||'root'].Up(b)}function Bo(a,b,c,d){const e=a.T,f=b+d+c;let g=e[f];void 0===g&&(g=ej(a.db,b,c,d),e[f]=g);return g}function Co(a,b){a.D||a.C.Up(b)}function Do(a,b,c,d,e){if(!a.D){let f=Bo(a,c,d,e||olympe.dc.Ib.DESTINATION);e||(f+=Bo(a,c,d,olympe.dc.Ib.ORIGIN));0===f&&Co(a,b)}}
|
|
1655
1655
|
function Eo(a,b){const c=a.O[b];void 0!==c?(a.V&&a.V.debug('Set current block to',b,null!==c.parent?'parent = '+c.parent.ja():''),a.C=c):a.V&&a.V.error('Try to set a block that does not exists:',b)}function Fo(a){const b=String(++a.W),c=a.C;a.O[b]=new Go(b,c);Ho(c,b);c.D||(c.D=()=>Eo(a,c.ja()));return b}function Io(a,b){const c=a.C;a.C.D=()=>{Eo(a,c.ja());b()}}function Jo(a,b){Ao(b?a.O[b]:a.C)}
|
|
1656
|
-
olympe.dc.
|
|
1657
|
-
class Go{constructor(a,b){this.id=a;this.parent=b||null;this.C=this.R=this.D=this.children=null;this.O=!1}ja(){return this.id}Up(a){const b=this.R;if(this.O||this.C===a||null===a)b&&b(),!b&&Ao(this)}notify(a){const b=this.D,c=this.children;if(this.O)b&&b();else if(!c[a]){a=c[a]=!0;for(let d in c)if(!c[d]){a=!1;break}a&&b&&b()}}};olympe.dc.cd={};function Ko(a,b,c,d){const e=olympe.dc.eb(),f=new olympe.dc.
|
|
1656
|
+
olympe.dc.dg.lL=class{constructor(a,b){this.db=a;this.V=b||null;this.R=Object.create(null);this.T=Object.create(null);this.D=!1;this.W=0;this.C=new Go('root');this.O=Object.create(null);this.O.root=this.C}register(a,b,c,d,e){this.D||(null!==b&&c&&d&&e?(c=Bo(this,c,d,e),d=this.R[b]||0,this.R[b]=++d,this.C.C===b&&c<=d&&(this.C.C=a)):this.C.C=a)}};function Ho(a,b){null===a.children&&(a.children=Object.create(null));a.children[b]=!1}function Ao(a){a.O=!0;null!==a.parent&&a.parent.notify(a.id)}
|
|
1657
|
+
class Go{constructor(a,b){this.id=a;this.parent=b||null;this.C=this.R=this.D=this.children=null;this.O=!1}ja(){return this.id}Up(a){const b=this.R;if(this.O||this.C===a||null===a)b&&b(),!b&&Ao(this)}notify(a){const b=this.D,c=this.children;if(this.O)b&&b();else if(!c[a]){a=c[a]=!0;for(let d in c)if(!c[d]){a=!1;break}a&&b&&b()}}};olympe.dc.cd={};function Ko(a,b,c,d){const e=olympe.dc.eb(),f=new olympe.dc.dg.vy,g=new olympe.dc.dg.lL(e);let k=!1;const l=Object.create(null),m=r=>{if(0<r.length)for(const t in l)r[0]===t&&d(l[t])};let n=(r,t,u,v)=>{a.$f()||a.lc()||(k||(eo(g,()=>{v.Up();ao(g)}),v.rk().Nq(m),k=!0),r?l[u]=t:delete l[u],fo(g,u))};if(null!==c)for(let r=c.length-1;0<=r;r--)n=c[r].C(a,g,n);const p=olympe.oa.bf();qh(e,b,(r,t)=>{g.register(p,null);const u=f.C(r,b,p,null);n(r,t,p,go(u,r,b,p))},p);a.onDestroy(()=>{nh(e,b,p)});e.tc(b)||ao(g)}
|
|
1658
1658
|
function Lo(a,b,c){const d=c.getContext(),e=olympe.dc.eb(),f=a.O(),g=Pi(e,b,a.R,d.re(k=>{null!==k&&(k=f(k));null===k?c.clear():c.update(k)}));d.onDestroy(()=>Qi(e,b,a.R,g))}
|
|
1659
1659
|
olympe.dc.cd.vv=class{constructor(a,b,c){this.R=a&&a.ka?a.ka():a;this.Ra=b&&b.filter(d=>d instanceof olympe.dc.Ra.um||d instanceof olympe.dc.Ra.zj)||null;this.D=c||null;this.defaultValue=null}bb(){}Ee(){}O(){}C(){return(this.Ra||[]).reduce((a,b)=>a.concat(olympe.dc.query.Relation.from(b)),[])}kj(a){this.defaultValue=a;return this}bs(){return this.Ra}Cj(){return this.D}getValue(a,b){const c=a.run(()=>olympe.j.Za(this.Ee()||Object,'AbstractProperty valueType'));null!==this.defaultValue&&M(c,this.defaultValue);
|
|
1660
1660
|
b=this.D||b;null!==this.Ra?Ko(a,b,this.Ra,d=>{Lo(this,d,c)}):Lo(this,b,c);return c.wa()}fb(a){const b=jo(a,this.R),c=jo(a,this.D);let d='null';this.Ra&&(d=this.Ra.map(function(e){return e.fb(a)}).join(','));return`{"c":"${this.bb()}","a":["${b}",${d},${c}]}`}toString(){const a=io(this.R),b=this.D?','+io(this.D):'';let c='';this.Ra&&(c=','+this.Ra.join(','));return this.bb().replace(/^.+\./,'')+'('+a+c+b+')'}};olympe.dc.cd.vv.Aa=[olympe.dc.Rz];olympe.dc.cd.tF=class{constructor(a,b){if(olympe.j.Mg(a))throw Error('Dataflows of Property not supported by AnyProperty');const c=a.ka();var d=olympe.dc.eb();const e=d.Wd(a,olympe.dm.Property.typeRel);if(!e)throw Error('Type of property '+a+'unavailable locally, cannot proceed with AnyProperty');a=d.iq(e,olympe.dc.CloudObject.extendRel,olympe.dm.$k);d=null;switch(1<a.length?a[a.length-2]:e){case olympe.dm.String.U.ka():d=new olympe.dc.cd.nw(c,b);break;case olympe.dm.Number.U.ka():d=new olympe.dc.cd.$v(c,
|
|
1661
1661
|
b);break;case olympe.dm.Boolean.U.ka():d=new olympe.dc.cd.yy(c,b);break;case olympe.dm.DateTime.U.ka():d=new olympe.dc.cd.Bv(c,b)}this.D=d}bb(){return this.D.bb()}C(){return this.D.C()}getValue(a,b){return this.D.getValue(a,b)}fb(a){return this.D.fb(a)}toString(){return this.D.toString()}};olympe.dc.cd.tF.Aa=[olympe.dc.Rz];olympe.dc.cd.yy=class extends olympe.dc.cd.vv{constructor(a,b,c){super(a,b,c)}bb(){return Lh(olympe.dc.cd.yy)}O(){return olympe.dc.Ad.ED}Ee(){return olympe.j.ia}};X('olympe.dc.valuedefs.BooleanProperty',olympe.dc.cd.yy);olympe.dc.cd.gm=class{constructor(a){this.value=a}bb(){return Lh(olympe.dc.cd.gm)}C(){return[]}getValue(){return this.value}fb(a){a=jo(a,this.value);return`{"c":"${this.bb()}","a":[${a}]}`}toString(){return`Constant(${io(this.value)})`}};X('olympe.dc.valuedefs.Constant',olympe.dc.cd.gm);olympe.dc.cd.gm.Aa=[olympe.dc.Rz];olympe.dc.cd.Bv=class extends olympe.dc.cd.vv{constructor(a,b,c){super(a,b,c)}bb(){return Lh(olympe.dc.cd.Bv)}O(){return olympe.dc.Ad.FD}Ee(){return olympe.j.ac}};X('olympe.dc.valuedefs.DateTimeProperty',olympe.dc.cd.Bv);olympe.dc.cd.$v=class extends olympe.dc.cd.vv{constructor(a,b,c){super(a,b,c)}bb(){return Lh(olympe.dc.cd.$v)}O(){return olympe.dc.Ad.GD}Ee(){return olympe.j.aa}};X('olympe.dc.valuedefs.NumberProperty',olympe.dc.cd.$v);olympe.dc.cd.nw=class extends olympe.dc.cd.vv{constructor(a,b,c){super(a,b,c)}bb(){return Lh(olympe.dc.cd.nw)}O(){return olympe.dc.Ad.HD}Ee(){return olympe.j.kb}};X('olympe.dc.valuedefs.StringProperty',olympe.dc.cd.nw);olympe.dc.cd.pw=class{bb(){return Lh(olympe.dc.cd.pw)}C(){return[]}getValue(a,b){return b}fb(){return'{"c":"'+this.bb()+'","a":[]}'}toString(){return'Tag()'}};X('olympe.dc.valuedefs.Tag',olympe.dc.cd.pw);olympe.dc.cd.pw.Aa=[olympe.dc.Rz];olympe.dc.Ra={};olympe.dc.Ra.Cv=class{Ee(){return null}bb(){return Lh(olympe.dc.Ra.Cv)}C(a,b,c){const d={};return function(e,f,g,k){e?void 0===d[f]?(d[f]=1,b.C.C!==g||b.D||(b.C.C=f),c(!0,f,f,go(k,!0,f,f))):(d[f]++,Co(b,g)):void 0!==d[f]&&0>=--d[f]&&(delete d[f],c(!1,f,f,go(k,!1,f,f)))}}fb(){return'{"c":"'+this.bb()+'"}'}toString(){return'Distinct()'}};X('olympe.dc.transformers.Distinct',olympe.dc.Ra.Cv);olympe.dc.Ra.Cv.Aa=[olympe.dc.qo];olympe.dc.Ra.Qf=class{constructor(a){this.D=a}Ee(){return null}bb(){return Lh(olympe.dc.Ra.Qf)}O(){return this.D.D()}C(a,b,c){function d(f,g,k,l){l=l.valueOf();!1===l&&Co(b,g);l!==!!e[g]&&(e[g]=l,c(l,f,g,go(k,l,f,g)))}const e={};return(f,g,k,l)=>{const m='@'+k;if(f){let n=this.D.C(a,g);olympe.j.Zb(n)&&(n=n.Tb);olympe.j.$m(n)?(b.D||void 0!==olympe.j.Qa(n)||Co(b,k),e[m]=n,a.run(()=>{olympe.j.Wa([n],p=>{d(g,k,l,p)},'filterResultHandler')})):d(g,k,l,n)}else void 0!==e[m]&&(e[m].destroy(),delete e[m]),
|
|
1662
1662
|
d(g,k,l,!1),delete e[k]}}fb(a){return'{"c":"'+this.bb()+'","a":['+this.D.fb(a)+']}'}toString(){return'Filter('+this.D.toString()+')'}};X('olympe.dc.transformers.Filter',olympe.dc.Ra.Qf);olympe.dc.Ra.Qf.Aa=[olympe.dc.qo,olympe.dc.iK];olympe.dc.Ra.bC=class{constructor(a,b,c,d){this.rel=new olympe.dc.Oc.Relation(olympe.dc.Ya(a),c||olympe.dc.Ib.DESTINATION);this.D=new olympe.dc.Oc.Relation(olympe.dc.Ya(b),d||olympe.dc.Ib.DESTINATION)}Ee(){return Kh(this.rel)}bb(){return Lh(olympe.dc.Ra.bC)}C(a,b,c){const d=olympe.dc.eb(),e={},f=this.rel.ka(),g=this.rel.zc(),k=this.D.ka(),l=this.D.zc();let m=null,n=null;const p=(t,u,v,w,x,y)=>{if(x){if(x=()=>{const A=olympe.oa.Xd(v+g+(f+'_'+t)+y,20),H=go(u,!0,y,A);m=t;n=()=>{c(!1,y,A,go(u,!1,y,A))};
|
|
1663
1663
|
b.register(A,v,w,f,g);c(!0,y,A,H)},x.wO=t,e[w]=x,null===m||t<m)n&&n(),x()}else if(m===t){n();e[w]=!0;x=Infinity;let A=null;for(let H=Object.keys(e),G=H.length,R=0;R<G;R++){let fa=e[H[R]];fa.wO<x&&(x=fa.wO,A=fa)}A&&A()}},r=(t,u,v,w,x)=>{w?e[x]||(e[x]=!0,Do(b,v,x,f,g),Do(b,v,x,k,l),Ui(d,x,this.rel,p.bind(this,t,u,v,x),v+'_val'),Ui(d,x,this.D,r.bind(this,t+1,u,v),v+'_follow')):(d.D(x,this.D,v+'_follow'),d.D(x,this.rel,v+'_val'),delete e[x])};return(t,u,v,w)=>r(0,w,v,t,u)}fb(){return'{"c":"'+this.bb()+
|
|
1664
|
-
'","a":["'+this.rel.toString()+'","'+this.D.toString()+'"]}'}toString(){return'FirstRelated('+this.rel.toString()+', '+this.D.toString()+')'}};X('olympe.dc.transformers.FirstRelated',olympe.dc.Ra.bC);olympe.dc.Ra.bC.Aa=[olympe.dc.qo];olympe.dc.Ra.wt=class{constructor(a,b){this.start=a;this.D=b}Ee(){return null}bb(){return Lh(olympe.dc.Ra.wt)}C(a,b,c){const d=new olympe.dc.
|
|
1664
|
+
'","a":["'+this.rel.toString()+'","'+this.D.toString()+'"]}'}toString(){return'FirstRelated('+this.rel.toString()+', '+this.D.toString()+')'}};X('olympe.dc.transformers.FirstRelated',olympe.dc.Ra.bC);olympe.dc.Ra.bC.Aa=[olympe.dc.qo];olympe.dc.Ra.wt=class{constructor(a,b){this.start=a;this.D=b}Ee(){return null}bb(){return Lh(olympe.dc.Ra.wt)}C(a,b,c){const d=new olympe.dc.dg.IC;let e,f,g,k=!1;const l=()=>{if(void 0!==f&&void 0!==g&&void 0!==e){var n=f+g;b.D||(b.C.C=e[0>n-1?0:Math.min(e.length,n)-1]);uo(d,e,f,n,c)}};a.run(()=>olympe.j.Wa([this.start,this.D],(n,p)=>{f=n.valueOf();g=p.valueOf();l()}));Io(b,l);const m=Fo(b);Eo(b,m);return(n,p,r,t)=>{k||(t.rk().Nq(u=>{e=u;Jo(b,m)}),eo(b,()=>t.Up(),m),k=!0);d.C(n,p,r,null);fo(b,r,m)}}fb(a){return'{"c":"'+
|
|
1665
1665
|
this.bb()+'","a":['+jo(a,this.start)+','+jo(a,this.D)+']}'}toString(){return`Limit(${olympe.j.Qa(this.start)},${olympe.j.Qa(this.D)})`}};X('olympe.dc.transformers.Limit',olympe.dc.Ra.wt);olympe.dc.Ra.wt.Aa=[olympe.dc.qo];function Mo(a){return a.md.map(b=>b.ka())}
|
|
1666
1666
|
olympe.dc.Ra.iz=class{constructor(a,b){this.direction=b||olympe.dc.Ib.DESTINATION;this.md=a.map(c=>new olympe.dc.Oc.Relation(c,this.direction))}Ee(){return olympe.dc.CloudObject}bb(){return Lh(olympe.dc.Ra.iz)}zc(){return this.direction}C(a,b,c){const d=olympe.dc.eb(),e=(f,g,k,l)=>Ui(d,f,l,(m,n)=>{var p=l.ka();p=olympe.oa.Xd(g+l.zc()+p+n,20);const r=go(k,m,n,p);m&&b.register(p,g,f,l.ka(),l.zc());c(m,n,p,r)},g);return(f,g,k,l)=>{f?this.md.forEach(m=>{Do(b,k,g,m.ka(),m.zc());e(g,k,l,m)}):this.md.forEach(m=>
|
|
1667
1667
|
{d.D(g,m,k)})}}fb(){return'{"c":"'+this.bb()+'","a":['+JSON.stringify(Mo(this))+',"'+this.direction+'"]}'}toString(){return'MultiRelated('+this.zc()+'['+Mo(this).join(',')+'])'}};X('olympe.dc.transformers.MultiRelated',olympe.dc.Ra.iz);olympe.dc.Ra.iz.Aa=[olympe.dc.qo];olympe.dc.Ra.zj=class extends olympe.dc.Oc.Relation{constructor(a,b=olympe.dc.Ib.DESTINATION,c=1,d=-1){super(a,b);this.O=c;this.D=d}Ee(){return Kh(this)}bb(){return Lh(olympe.dc.Ra.zj)}C(a,b,c){const d=olympe.dc.eb(),e=Object.create(null),f=olympe.dc.Ib.ORIGIN,g=olympe.dc.Ib.DESTINATION,k=this.ka(),l=this.zc(),m=(p,r,t)=>{if(!(0<=this.D&&p>=this.D)){var u=d.pc(t,this);p+=1;for(let v=0,w=u.length;v<w;v++){if(void 0!==e[u[v]]||t===u[v])continue;const x=olympe.oa.Xd(r+l+(k+'_'+p)+u[v],20);b.register(x,
|
|
1668
1668
|
r,t,k,l||g);null===l&&b.register(x,r,t,k,f)}}},n=(p,r,t,u,v,w)=>{v&&!b.D&&m(p,u,w);p>=this.O?c(v,w,u,go(t,v,w,u)):Do(b,u,w,k,l);0<=this.D&&p>=this.D||(v?e[w]||(e[w]=!0,Ui(d,w,this,(x,y)=>{const A=p+1,H=olympe.oa.Xd(u+l+(k+'_'+A)+y,20);n(A,w,t,H,x,y)},u)):(d.D(w,this,u),delete e[w]))};return(p,r,t,u)=>n(0,null,u,t,p,r)}fb(){return'{"c":"'+this.bb()+'","a":["'+this.ka()+'","'+this.zc()+'",'+this.O+','+this.D+']}'}toString(){return'RecursiveRelated('+this.zc()+this.ka()+'['+this.O+'..'+this.D+'])'}};
|
|
1669
1669
|
X('olympe.dc.transformers.RecursiveRelated',olympe.dc.Ra.zj);olympe.dc.Ra.zj.Aa=[olympe.dc.qo];olympe.dc.Ra.um=class extends olympe.dc.Oc.Relation{constructor(a,b){super(a,b||olympe.dc.Ib.DESTINATION)}Ee(){return Kh(this)}bb(){return Lh(olympe.dc.Ra.um)}fe(){return new olympe.dc.Ra.um(this.tag,this.direction===olympe.dc.Ib.DESTINATION?olympe.dc.Ib.ORIGIN:olympe.dc.Ib.DESTINATION)}C(a,b,c){const d=olympe.dc.eb(),e=this.ka(),f=this.zc();return(g,k,l,m)=>{Do(b,l,k,e,f);g?Ui(d,k,this,(n,p)=>{const r=olympe.oa.Xd(l+f+e+p,20),t=go(m,n,p,r);n&&b.register(r,l,k,e,f);c(n,p,r,t)},l):d.D(k,this,l)}}fb(){return'{"c":"'+
|
|
1670
|
-
this.bb()+'","a":["'+this.ka()+'","'+this.zc()+'"]}'}toString(){return'Related('+this.zc()+this.ka()+')'}};X('olympe.dc.transformers.Related',olympe.dc.Ra.um);olympe.dc.Ra.um.Aa=[olympe.dc.qo];olympe.dc.Ra.Cr=class{constructor(a,b){this.Oe=a;this.D=void 0===b?!0:!!b}Ee(){return null}bb(){return Lh(olympe.dc.Ra.Cr)}Ur(){return this.Oe}O(){return[this.Oe.R()]}C(a,b,c){const d=new olympe.dc.
|
|
1670
|
+
this.bb()+'","a":["'+this.ka()+'","'+this.zc()+'"]}'}toString(){return'Related('+this.zc()+this.ka()+')'}};X('olympe.dc.transformers.Related',olympe.dc.Ra.um);olympe.dc.Ra.um.Aa=[olympe.dc.qo];olympe.dc.Ra.Cr=class{constructor(a,b){this.Oe=a;this.D=void 0===b?!0:!!b}Ee(){return null}bb(){return Lh(olympe.dc.Ra.Cr)}Ur(){return this.Oe}O(){return[this.Oe.R()]}C(a,b,c){const d=new olympe.dc.dg.iL(a.re(this.D?this.Oe.compare.bind(this.Oe):(e,f)=>this.Oe.compare(f,e)));return(e,f,g)=>{var k=e?this.Oe.O(a,f):void 0;k=d.C(e,f,g,k);c(e,f,g,k)}}fb(a){return'{"c":"'+this.bb()+'","a":['+this.Oe.fb(a)+','+JSON.stringify(this.D)+']}'}toString(){return'Sort('+this.Oe.toString()+','+JSON.stringify(this.D)+
|
|
1671
1671
|
')'}};X('olympe.dc.transformers.Sort',olympe.dc.Ra.Cr);olympe.dc.Ra.Cr.Aa=[olympe.dc.qo,olympe.dc.iK];function No(a,b,c,d,e,f){function g(n,p){if(m)for(var r=m.length-1;0<=r;r--)f=m[r].C(b,e,f);e.register(k,null);r=d.C(n,p,c,null);f(n,p,k,go(r,n,p,k))}const k=olympe.oa.bf(),l=olympe.dc.eb(),m=a.Ra;b.run(()=>olympe.j.Wa([a.D],n=>{Oo(l,n,g,k);void 0===l.model(n)&&ao(e)}))}function Oo(a,b,c,d){const e=b&&b.valueOf();e&&(qh(a,e,c,d),olympe.j.yb().Ve(()=>nh(a,e,d)))}
|
|
1672
|
-
olympe.dc.Ra.ro=class{constructor(a,b){this.Ra=this.D=null;a instanceof olympe.dc.Kb?(this.D=a.Cj(),this.Ra=a.AC()):(this.D=a,b&&(this.Ra=b))}Ee(){return null}bb(){return Lh(olympe.dc.Ra.ro)||''}bs(){return this.Ra}Cj(){return this.D}C(a,b,c){const d=new olympe.dc.
|
|
1672
|
+
olympe.dc.Ra.ro=class{constructor(a,b){this.Ra=this.D=null;a instanceof olympe.dc.Kb?(this.D=a.Cj(),this.Ra=a.AC()):(this.D=a,b&&(this.Ra=b))}Ee(){return null}bb(){return Lh(olympe.dc.Ra.ro)||''}bs(){return this.Ra}Cj(){return this.D}C(a,b,c){const d=new olympe.dc.dg.IC,e=new olympe.dc.dg.vy;let f=[],g=[],k=!1,l=!1;const m=Fo(b),n=Fo(b);Io(b,()=>{const p=f.concat(g);0<p.length?b.D||(b.C.C=p[p.length-1]):Jo(b);uo(d,p,0,p.length,c)});Eo(b,n);No(this,a,this.D,e,b,(p,r,t,u)=>{const v=olympe.j.yb();v.$f()||
|
|
1673
1673
|
v.lc()||(l||(u.rk().Nq(w=>{g=w;Jo(b,n)}),eo(b,()=>u.Up(),n),l=!0),d.C(p,r,t),fo(b,t,n))});Eo(b,m);return(p,r,t,u)=>{k||(u.rk().Nq(v=>{f=v;Jo(b,m)}),eo(b,()=>u.Up(),m),k=!0);d.C(p,r,t,m);fo(b,t,m)}}fb(a){const b=this.Ra?'['+this.Ra.map(c=>c.fb(a)).join(',')+']':'null';return'{"c":"'+this.bb()+'","a":['+jo(a,this.D)+','+b+']}'}toString(){const a=olympe.j.Zb(this.D)?'N:'+this.D.Tb.ja():this.D.valueOf(),b=this.Ra?','+this.Ra.map(c=>c.toString()).join(','):'';return'Union('+a+b+')'}};
|
|
1674
|
-
X('olympe.dc.transformers.Union',olympe.dc.Ra.ro);olympe.dc.Ra.ro.Aa=[olympe.dc.qo];olympe.dc.Ra.$C={T_:1,lR:-1,wH:0};olympe.dc.Ra.z1={BZ:!0,b_:!1};olympe.dc.
|
|
1675
|
-
olympe.dc.CloudObject=class{constructor(a,b){this.tag=b;this.db=olympe.dc.eb();this.model=null}static yf(a,b,c,...d){b=olympe.dc.Ya(b);var e=sh(b);if(e=e&&e.C)return e(a,c,...d);a=a.create(b);void 0!==c&&null!==c&&Z(a,olympe.dc.CloudObject.nameProp,c);return a.ka()}static get(a){if(a instanceof olympe.dc.CloudObject)var b=a;else{b=olympe.dc.DN();a=olympe.dc.Ya(a);var c=b.db.model(a);c=rh(b,c);if(null===c)throw new olympe.dc.WJ(a);c=c.instantiate(a,
|
|
1676
|
-
a);b=c}return b}static Mw(a){return olympe.dc.eb().tc(olympe.dc.Ya(a))}static NV(a,b,c){const d=olympe.dc.eb();let e=null;const f=l=>{null===e&&(e=Po(b||this));return e.has(l)?e.get(l):null},g=Dn(!1),k=g.create(null!=b?b:this);void 0!==c&&k.ne(c);a.forEach((l,m)=>{d.tc(olympe.dc.Ya(m))?Z(k,m,l):(m=f(m))&&Z(k,m,l)});g.Kd((l,m)=>{l||olympe.gb.Cb('dc').error(`Error occurred for transaction executed by CloudObject.createWith: ${m}`)});return this.get(k)}static qM(){return this.get(this)}static KA(a){return olympe.dc.nb.KA(a)}static be(){return olympe.dc.eb().pc(this,
|
|
1674
|
+
X('olympe.dc.transformers.Union',olympe.dc.Ra.ro);olympe.dc.Ra.ro.Aa=[olympe.dc.qo];olympe.dc.Ra.$C={T_:1,lR:-1,wH:0};olympe.dc.Ra.z1={BZ:!0,b_:!1};olympe.dc.bg.ba={oJ:'dc.legacy.listdefProcessor'};olympe.dc.bg.pa={nJ:'dc.legacy.listdefsCovered'};olympe.sa.$e(a=>{E(a,olympe.dc.bg.pa.nJ,!1);B(a,olympe.dc.bg.ba.oJ,olympe.dc.bg.NS,olympe.dc.query.ba.Vb,olympe.dc.ba.Zs,olympe.dc.transaction.ba.Ob,olympe.dc.query.ba.fw,new olympe.sa.zb(olympe.dc.pa.Kt),new olympe.sa.zb(olympe.dc.bg.pa.nJ))});olympe.sa.run([olympe.dc.bg.ba.oJ],a=>{olympe.dc.bg.XW=()=>a});function Po(a){const b=olympe.dc.eb(),c=new Map;b.Yw(a).forEach(d=>{b.pc(d,olympe.dc.CloudObject.propertyRel).forEach(e=>{const f=b.name(e);c.has(f)||c.set(f,e)})});return c}
|
|
1675
|
+
olympe.dc.CloudObject=class{constructor(a,b){this.tag=b;this.db=olympe.dc.eb();Object.defineProperty(this,'db',{enumerable:!1});this.model=null}static yf(a,b,c,...d){b=olympe.dc.Ya(b);var e=sh(b);if(e=e&&e.C)return e(a,c,...d);a=a.create(b);void 0!==c&&null!==c&&Z(a,olympe.dc.CloudObject.nameProp,c);return a.ka()}static get(a){if(a instanceof olympe.dc.CloudObject)var b=a;else{b=olympe.dc.DN();a=olympe.dc.Ya(a);var c=b.db.model(a);c=rh(b,c);if(null===c)throw new olympe.dc.WJ(a);c=c.instantiate(a,
|
|
1676
|
+
b.D);b.C.nk([a],olympe.dc.db.Instance.C.yH);b.Oc.register(c,a);b=c}return b}static Mw(a){return olympe.dc.eb().tc(olympe.dc.Ya(a))}static NV(a,b,c){const d=olympe.dc.eb();let e=null;const f=l=>{null===e&&(e=Po(b||this));return e.has(l)?e.get(l):null},g=Dn(!1),k=g.create(null!=b?b:this);void 0!==c&&k.ne(c);a.forEach((l,m)=>{d.tc(olympe.dc.Ya(m))?Z(k,m,l):(m=f(m))&&Z(k,m,l)});g.Kd((l,m)=>{l||olympe.gb.Cb('dc').error(`Error occurred for transaction executed by CloudObject.createWith: ${m}`)});return this.get(k)}static qM(){return this.get(this)}static KA(a){return olympe.dc.nb.KA(a)}static be(){return olympe.dc.eb().pc(this,
|
|
1677
1677
|
olympe.dc.CloudObject.propertyRel).map(a=>new olympe.dc.Oc.Property(a))}static Xh(){const a=olympe.dc.eb();return a.pc(this,olympe.dc.CloudObject.px).map(b=>new olympe.dc.Oc.Relation(b)).concat(a.pc(this,olympe.dc.CloudObject.BM).map(b=>new olympe.dc.Oc.Relation(b,olympe.dc.Ib.ORIGIN)))}static ih(a){return olympe.dc.CloudObject.get(a)}static EN(a){var b=rh(olympe.dc.DN(),olympe.dc.Ya(a));b=b&&b.D;return new olympe.dc.Kb(olympe.dc.Ya(a),olympe.dc.CloudObject.instancesRel,b)}ka(){return this.tag}name(){return this.db.name(this)}bb(){return this.Rd(olympe.dc.CloudObject.nameProp)}Qe(){this.model||
|
|
1678
|
-
(this.model=olympe.dc.CloudObject.get(this.db.model(this)));return this.model}query(){return olympe.dc.nb.from(this)}Bl(){return this.db.Bl(this)}Sd(){return this.db.source(this)}TW(){return this.db.zu(this)?olympe.dc.Kj().fromModel(this):null}nN(){return olympe.j.Xa([this.bb()],a=>olympe.j.ic(a),olympe.j.kb,'getDisplayName',olympe.j.ic('('+this.toString()+')'))}De(){return this.model?this.model.ka():this.db.model(this)}observe(a,b,c=!0){const d='function'===typeof a.
|
|
1679
|
-
{const f=olympe.dc.Ad.ug(this.db.Ac(this.tag,b));c||null!==f||e.next(f);const g=Pi(this.db,this.tag,b,k=>{e.next(olympe.dc.Ad.ug(k))});d.Ve(()=>{e.complete();Qi(this.db,this.tag,b,g)});return()=>Qi(this.db,this.tag,b,g)})}gY(a){const b='function'===typeof a.
|
|
1678
|
+
(this.model=olympe.dc.CloudObject.get(this.db.model(this)));return this.model}query(){return olympe.dc.nb.from(this)}Bl(){return this.db.Bl(this)}Sd(){return this.db.source(this)}TW(){return this.db.zu(this)?olympe.dc.Kj().fromModel(this):null}nN(){return olympe.j.Xa([this.bb()],a=>olympe.j.ic(a),olympe.j.kb,'getDisplayName',olympe.j.ic('('+this.toString()+')'))}De(){return this.model?this.model.ka():this.db.model(this)}observe(a,b,c=!0){const d='function'===typeof a.se?a.se():a;return new rxjs.Observable(e=>
|
|
1679
|
+
{const f=olympe.dc.Ad.ug(this.db.Ac(this.tag,b));c||null!==f||e.next(f);const g=Pi(this.db,this.tag,b,k=>{e.next(olympe.dc.Ad.ug(k))});d.Ve(()=>{e.complete();Qi(this.db,this.tag,b,g)});return()=>Qi(this.db,this.tag,b,g)})}gY(a){const b='function'===typeof a.se?a.se():a;return new rxjs.Observable(c=>{const d=Ri(this.db,this.tag,(e,f)=>{null===f||void 0===f?c.next([new olympe.dc.Oc.Property(e),null]):c.next([new olympe.dc.Oc.Property(e),f])});b.Ve(()=>{c.complete();Si(this.db,this.tag,d)});return()=>
|
|
1680
1680
|
Si(this.db,this.tag,d)})}hY(a){return this.observe(olympe.j.yb(),a)}get(a){return olympe.dc.Ad.ug(this.db.Ac(this.tag,a))}Ac(a){return this.get(a)}oc(a){return olympe.dc.nb.from(this).oc(a)}ml(a){return olympe.dc.Rh.from(this).oc(a)}ug(){return this}zo(){return this.Ig(olympe.dc.CloudObject.JV,olympe.dc.CloudObject)}Vw(){return this.pc(olympe.dc.CloudObject.containsRel,olympe.dc.CloudObject)}Go(a,b,c){const d=olympe.j.Za(c,'Sync valueType'),e=Pi(this.db,this.tag,a,olympe.j.yb().re(f=>{b&&null!==f&&
|
|
1681
1681
|
void 0!==f&&(f=b(f));null===f||void 0===f?d.clear():d.update(f)}));d.getContext().onDestroy(()=>Qi(this.db,this.tag,a,e));return d.getContext()}Rd(a){return Wb(this.Go(a,olympe.dc.Ad.HD,olympe.j.kb))}yg(a){return Wb(this.Go(a,olympe.dc.Ad.GD,olympe.j.aa))}Vm(a){return Wb(this.Go(a,olympe.dc.Ad.ED,olympe.j.ia))}gx(a){return Wb(this.Go(a,olympe.dc.Ad.FD,olympe.j.ac))}VN(){return Wb(this.Go(olympe.dm.Color.valueProp,olympe.dc.Ad.uM,olympe.j.Color))}xA(a){return Wb(this.Go(a,olympe.dc.Ad.vM,olympe.dc.CloudObject))}pc(a,
|
|
1682
1682
|
b){a=a instanceof olympe.dc.Ra.um?a:new olympe.dc.Ra.um(a.ka(),a.zc());return new olympe.dc.Kb(this.ka(),a,b)}Ig(a,b){return this.pc(a,b).Vd()}fA(a,b){const c=this.db,d=olympe.oa.bf(),e=olympe.j.yb(),f=new Map;Ui(c,this.tag,a,(k,l)=>{if(k)(k=e.run(b,olympe.dc.CloudObject.get(l)))&&f.set(l,k);else{let m;null==(m=f.get(l))||m();f.delete(l)}},d);const g=()=>{c.D(this.tag,a,d)};e.onDestroy(g);return g}pZ(){return new olympe.dc.Kb(this.ka(),[],Ih(this.ka()))}transform(...a){return(new olympe.dc.Kb(this.ka(),
|
|
@@ -1704,12 +1704,12 @@ olympe.dm.BrickMetadata.lk={p_:'experimental',o1:'stable',a_:'deprecated'};olymp
|
|
|
1704
1704
|
function rl(a,b){const c=a.query().oc(olympe.dm.ii.C.fe()).oc(olympe.dm.ii.D);a=a.query().oc(olympe.dm.fd.O.fe()).Yp(olympe.dm.fd.C,!0).oc(olympe.sc.qg.C.fe());const d=e=>e.Zi().Yp(olympe.dc.CloudObject.extendRel,!0).oc(olympe.dc.CloudObject.px,!0).oc(olympe.dm.Relation.destinationModelRel).back(2).oc(olympe.dc.CloudObject.propertyRel,!0).oc(olympe.dm.Property.typeRel).observe(b);return rxjs.combineLatest([d(c),d(a)]).pipe(rxjs.operators.map(([e,...f])=>e.concat(...f)))}
|
|
1705
1705
|
function Ql(a,b){return a.observe(b,olympe.dm.DataSource.xM).pipe(rxjs.operators.map(()=>a.yo(olympe.dc.sources.pa.am)),rxjs.operators.distinctUntilChanged())}
|
|
1706
1706
|
olympe.dm.DataSource=class extends olympe.dc.CloudObject{constructor(a,b,c){super(a,b);this.kf=c;this.yM=new Map([[olympe.dc.sources.pa.SC,olympe.dm.DataSource.sY],[olympe.dc.sources.pa.am,olympe.dm.DataSource.xM],[olympe.dc.sources.pa.ZC,olympe.dm.DataSource.BY]])}ja(){return this.tag===olympe.dm.DataSource.SERVER?olympe.dc.Jc.SERVER:this.tag}yo(a){const b=a.startsWith('data.')?a.split('.')[1]:a,c=`${'data.'}${b}`;let d,e;return null!=(e=null!=(d=olympe.sa.getParameter(`${'data.'}${this.name().toLowerCase().replace(/\W/g,
|
|
1707
|
-
'_')}.${b}`))?d:dl(this.ka(),a))?e:this.yM.has(c)?this.get(this.yM.get(c)):null}jh(){const a=this;return q(function*(){const b=olympe.dm.DataSource.Vf.yQ,c=olympe.dm.DataSource.Vf.
|
|
1707
|
+
'_')}.${b}`))?d:dl(this.ka(),a))?e:this.yM.has(c)?this.get(this.yM.get(c)):null}jh(){const a=this;return q(function*(){const b=olympe.dm.DataSource.Vf.yQ,c=olympe.dm.DataSource.Vf.we,d=new olympe.dc.Request(olympe.dc.Request.C.Vf,a.ja());return oh(a.kf,d).then(e=>{let f;const g=null!=(f=null==e?void 0:e.s)?f:c;(e=null==e?void 0:e.r)&&olympe.gb.Cb('dc').warn(`Source ${a.name()} (${a.ja()}) has encountered issues: ${e}`);return g}).catch(e=>{const f=olympe.Y.errors.OJ;return e instanceof olympe.Y.errors.Nz||
|
|
1708
1708
|
e instanceof f?b:c})})}init(){const a=this;return q(function*(){if(a.constructor===olympe.dm.DataSource)throw Error(`Data source ${a.name()} (${a.tag}) has no implementation (is the file missing ?)`);})}destroy(){return q(function*(){})}healthCheck(){return q(function*(){})}executeQuery(a){return q(function*(){return olympe.dc.query.vi.Pw(a)})}applyTransaction(){return q(function*(){})}uploadFileContent(){return q(function*(){throw Error('Should not try to upload files with SELF source');})}downloadFileContent(){return q(function*(){throw Error('Should not try to download files with SELF source');
|
|
1709
1709
|
})}deleteFileContent(){return q(function*(){})}};olympe.dm.DataSource.prototype.deleteFileContent=olympe.dm.DataSource.prototype.deleteFileContent;olympe.dm.DataSource.prototype.downloadFileContent=olympe.dm.DataSource.prototype.downloadFileContent;olympe.dm.DataSource.prototype.uploadFileContent=olympe.dm.DataSource.prototype.uploadFileContent;olympe.dm.DataSource.prototype.applyTransaction=olympe.dm.DataSource.prototype.applyTransaction;olympe.dm.DataSource.prototype.executeQuery=olympe.dm.DataSource.prototype.executeQuery;
|
|
1710
1710
|
olympe.dm.DataSource.prototype.healthCheck=olympe.dm.DataSource.prototype.healthCheck;olympe.dm.DataSource.prototype.destroy=olympe.dm.DataSource.prototype.destroy;olympe.dm.DataSource.prototype.init=olympe.dm.DataSource.prototype.init;olympe.dm.DataSource.prototype.getConfig=olympe.dm.DataSource.prototype.yo;olympe.dm.DataSource.prototype.getId=olympe.dm.DataSource.prototype.ja;olympe.dm.DataSource.U=olympe.dc.Ja.C('ff021000000000000060',olympe.dm.DataSource,olympe.dc.ba.tr);
|
|
1711
1711
|
olympe.dm.DataSource.Yt=olympe.dm.DataSource.U.fa('ff023000000000000060');z('olympe.dm.DataSource.activatedProp',olympe.dm.DataSource.Yt);olympe.dm.DataSource.O2=olympe.dm.DataSource.U.fa('ff023000000000000061');olympe.dm.DataSource.sY=olympe.dm.DataSource.U.fa('ff023000000000000062');olympe.dm.DataSource.xM=olympe.dm.DataSource.U.fa('ff023000000000000063');olympe.dm.DataSource.DM=olympe.dm.DataSource.U.fa('ff023000000000000064');olympe.dm.DataSource.BY=olympe.dm.DataSource.U.fa('ff023000000000000065');
|
|
1712
|
-
olympe.dm.DataSource.qx=olympe.dm.DataSource.U.tb('ff022000000000000060');olympe.dm.DataSource.SERVER=Hh('00000000000000000060','Server source');olympe.dm.DataSource.am={e0:'hybrid',HF:'bus',lH:'http'};olympe.dm.DataSource.Vf={Dt:'ready',
|
|
1712
|
+
olympe.dm.DataSource.qx=olympe.dm.DataSource.U.tb('ff022000000000000060');olympe.dm.DataSource.SERVER=Hh('00000000000000000060','Server source');olympe.dm.DataSource.am={e0:'hybrid',HF:'bus',lH:'http'};olympe.dm.DataSource.Vf={Dt:'ready',we:'error',yQ:'down',jk:'offline'};olympe.dm.ii=class extends olympe.dc.CloudObject{};olympe.dm.ii.U=olympe.dc.Ja.C('ff021000000000000070',olympe.dm.ii);olympe.dm.ii.C=olympe.dm.ii.U.tb('ff023000000000000071');olympe.dm.ii.D=olympe.dm.ii.U.tb('ff023000000000000072');olympe.dm.ii.O=olympe.dm.ii.U.tb('ff023000000000000073');olympe.dm.Ye=class extends olympe.dm.BrickMetadata{W(){return new olympe.dc.Kb(this.ka(),[new olympe.dc.Ra.zj(olympe.dm.Ye.D.ka(),olympe.dc.Ib.DESTINATION,olympe.dc.Ra.$C.wH,olympe.dc.Ra.$C.lR),olympe.dm.Ye.R])}Di(){return olympe.sc.jf.Yi.NQ}C(){return this.pc(olympe.dm.Ye.D,olympe.dm.Ye)}D(){return this.pc(olympe.dm.Ye.R)}};olympe.dm.Ye.U=olympe.dc.Ja.C('01612df1db9749227626',olympe.dm.Ye);olympe.dm.Ye.D=olympe.dm.Ye.U.tb('016a697ef00ce7554691');olympe.dm.Ye.Oa=Y(olympe.dm.Ye.U,olympe.dm.Ye.D);
|
|
1713
1713
|
olympe.dm.Ye.R=olympe.dm.Ye.U.tb('016a697ef00ce7554692');Y(olympe.dc.CloudObject.U,olympe.dm.Ye.R);olympe.dm.Ye.prototype.W.K=new olympe.j.J(()=>olympe.dc.Kb,[]);olympe.dm.Ye.prototype.C.K=new olympe.j.J(()=>olympe.dc.Kb,[]);olympe.dm.Ye.prototype.D.K=new olympe.j.J(()=>olympe.dc.Kb,[]);olympe.dm.fh=class extends olympe.dm.Ye{C(){return this.ka()===olympe.dm.fh.za?this.pc(olympe.dm.fh.$,olympe.dm.Ye):this.pc(olympe.dm.fh.ca,olympe.dm.Ye)}};olympe.dm.fh.U=olympe.dc.Ja.C('ff021000000000000020',olympe.dm.fh);olympe.dm.fh.ca=olympe.dm.fh.U.tb('017e9c34cf48bd6965c1');olympe.dm.fh.$=olympe.dm.fh.U.tb('017e9c2e013e06bfffd9');olympe.dm.fh.Hg=olympe.dm.fh.U.tb('01811f12ad77673770d4');olympe.dm.fh.za=Hh('10000000000000000000','ROOT_OF_ROOTS');olympe.dm.fh.Eb=Hh('10000000000000000001','OLYMPE_FOLDER');
|
|
1714
1714
|
olympe.dm.fh.xb=Hh('10000000000000000002','INTERNAL_FOLDER');olympe.dm.fh.prototype.C.K=new olympe.j.J(()=>olympe.dc.Kb,[]);olympe.dm.Module=class extends olympe.dc.CloudObject{IW(){return this.Rd(olympe.dm.Module.T)}aX(){return this.yg(olympe.dm.Module.W)}pS(){return this.Rd(olympe.dm.Module.D)}eX(){return this.Rd(olympe.dm.Module.$)}rW(){return this.Rd(olympe.dm.Module.O)}bX(){return this.pc(olympe.dm.Module.R,olympe.dm.Module)}oX(){return this.pc(olympe.dm.Module.C,olympe.dm.Ti)}};olympe.dm.Module.U=olympe.dc.Ja.C('ff021000000000000040',olympe.dm.Module);olympe.dm.Module.T=olympe.dm.Module.U.fa('ff023000000000000042');
|
|
1715
1715
|
olympe.dm.Module.W=olympe.dm.Module.U.fa('ff023000000000000043');olympe.dm.Module.D=olympe.dm.Module.U.fa('ff023000000000000044');olympe.dm.Module.$=olympe.dm.Module.U.fa('ff023000000000000045');olympe.dm.Module.O=olympe.dm.Module.U.fa('ff023000000000000046');olympe.dm.Module.creationDateProp=olympe.dm.Module.U.fa('ff023000000000000049');olympe.dm.Module.C=olympe.dm.Module.U.tb('ff022000000000000013');olympe.dm.Module.R=olympe.dm.Module.U.tb('ff022000000000000014');
|
|
@@ -1735,56 +1735,56 @@ olympe.sa.$e(a=>{E(a,olympe.sc.pa.Zl,'');E(a,olympe.sc.pa.tp,!1);E(a,olympe.sc.p
|
|
|
1735
1735
|
b);return new olympe.sc.Hb(c)})},'olympe.sc');olympe.sa.run([olympe.sc.ba.hw,new olympe.sa.zb(olympe.Y.pa.IB)],(a,b)=>{olympe.Jj().ctx=a;olympe.Jj().oVersion=()=>b});olympe.sc.LA=()=>null!==olympe.dc.eb().Wd(void 0,olympe.sc.Runnable.W.fe());olympe.sc.M2=(a,b,c,d)=>{c=Z(Z(a.create(olympe.sc.Ch),olympe.sc.Ch.C,c||null),olympe.sc.Ch.O,d||null);a.Qb(olympe.sc.Ch.D,c,b);a.Qb(olympe.dc.CloudObject.containsRel,b,c);return c.ka()};olympe.sc.Hw=(a,b)=>{a=olympe.dc.Ad.lW(b)(a);return a instanceof olympe.sc.ri?a.C():a};
|
|
1736
1736
|
olympe.sc.d3=function(a){const b=olympe.dc.CloudObject.containsRel.fe();var c=olympe.dc.Ya(a);if(void 0===c)return[];a=olympe.dc.eb();const d=[];let e=[];const f=new Set;for(;!a.me(c,olympe.dm.Ye);){f.add(c);const g=a.Wd(c,b);if(null===g)return olympe.gb.Cb('sc').warn(`Object ${c} has no container`),[];a.me(c,olympe.sc.logic.jd)||g===a.Wd(c,olympe.sc.Runnable.W.fe())||d.push(c);c=g;if(f.has(c))throw Error(`Instance ${c} (${a.name(c)}) is part of a cyclic contain pattern`);}e.push(c);e=e.concat(a.iq(e[0],
|
|
1737
1737
|
olympe.dm.Ye.Oa));e=e.concat(a.iq(e[e.length-1],olympe.dm.fh.ca.fe()));e=e.concat(a.iq(e[e.length-1],olympe.dm.fh.$.fe()));return[...d,...e].reverse()};olympe.sc.JW=a=>{a=a&&a.valueOf()||'';return a.startsWith('image/')?olympe.sc.Xn:a.startsWith('video/')?olympe.sc.St:a.startsWith('font/')||a.startsWith('application/font-woff')?olympe.sc.Fg:olympe.dm.File};
|
|
1738
|
-
olympe.sc.c3=a=>a instanceof olympe.sc.Xn?'image/*':a instanceof olympe.sc.St?'video/*':a instanceof olympe.sc.Fg?'font/*,application/font-woff':null;olympe.sc.$c={};function Ro(a,b){var c=olympe.sc.Hb,d=a.C;a=a.
|
|
1738
|
+
olympe.sc.c3=a=>a instanceof olympe.sc.Xn?'image/*':a instanceof olympe.sc.St?'video/*':a instanceof olympe.sc.Fg?'font/*,application/font-woff':null;olympe.sc.$c={};function Ro(a,b){var c=olympe.sc.Hb,d=a.C;a=a.se();b=olympe.dc.Ya(b);let e,f=null==(e=d.children)?void 0:e.get(b);if(!f){f=d.wo(a,void 0,b);for(d=f.getParent();d&&d.ca&&!d.id.startsWith('_');)d=d.getParent();let g;null==(g=d)||So(g,b,f)}return new c(f)}function To(a,b){let c,d;return(a=null!=(d=null==(c=a.C.children)?void 0:c.get(olympe.dc.Ya(b)))?d:null)?new olympe.sc.Hb(a):null}function Uo(a){let b;return null!=(b=a.Qa(olympe.sc.Hb.C.EDITION))?b:!1}
|
|
1739
1739
|
function Vo(a){let b;return null!=(b=a.Qa(olympe.sc.Hb.C.PRODUCTION))?b:!1}
|
|
1740
1740
|
olympe.sc.Hb=class{constructor(a=olympe.sc.uE){this.C=a;this.V=olympe.gb.Cb('sc');this.parent=null}ja(){return this.C.ja()}getParent(){if(null===this.parent){const a=this.C.getParent();this.parent=null===a?null:new olympe.sc.Hb(a)}return this.parent}pW(a){const b=olympe.dc.eb();let c=this.getParent();if(!c)return this;const d=e=>{e=e.Fm();if('string'!==typeof e)return!1;const f=b.model(e);return f&&b.Ac(f,olympe.sc.yc.da)||a.modelTag&&!b.me(e,a.modelTag)?!1:!0};for(;c&&!d(c);){const e=c.getParent();
|
|
1741
|
-
if(!e)break;c=e}return c}Fm(){return this.C.Fm()}
|
|
1741
|
+
if(!e)break;c=e}return c}Fm(){return this.C.Fm()}se(){return this.C.se()}set(a,b){this.C.set(a,b);return this}Qq(a){return this.set(a,Date.now())}remove(a){this.set(a,null)}wa(a,b,c=!1){const d=olympe.dc.Ya(a),e=olympe.j.Za(null!=b?b:Object,`Get context value flow source of ${d}`);e.getContext().onDestroy(this.on(a,f=>{null===f?e.clear():e.update(f)},c?this.C.ja():void 0));return e.wa()}get(a,b=!1){a=this.Qa(a,b);return void 0!==a?a:null}has(a,b=!1){return this.C.has(a,b)}observe(a,b=!0,c=!1){return new rxjs.Observable(d=>
|
|
1742
1742
|
{const e=this.get(a);b||null!==e||d.next(e);const f=this.on(a,d.next.bind(d),c?void 0:this.C.ja(),!1);this.onDestroy(()=>{f();d.complete()});return f})}repeat(a,b){const c=Wo(this.C,a);a=b.subscribe(d=>{null!==d?this.set(c,d):this.remove(c)});this.js(a.unsubscribe.bind(a));return this}CY(a){a=a instanceof olympe.sc.Runnable?a:this.get(a);if(!a)return null;const b=this.wo(`Runner ${a.name()}`);a.run(b);return b}qB(a,b=!0,c=!1){return new Promise((d,e)=>{this.observe(a,b,c).pipe(rxjs.operators.first()).subscribe(rxjs.Subscriber.create(d,
|
|
1743
1743
|
f=>{let g=`An error occurred while calling \`waitFor(${olympe.dc.Ya(a)})\``+`on the context ${this.ja()}:\nStack: ${this.tk()}\n${f}`;f instanceof rxjs.EmptyError&&(g=`The context ${this.ja()} has been destroyed while a Promise `+`created from a call to \`waitFor(${olympe.dc.Ya(a)})\` `+`has never received any value:\nStack: ${this.tk()}`);e(Error(g))}))})}throw(a){var b=a instanceof Error?a.message:String(a);if(a instanceof Error){var c;const d=(null==(c=a.tk)?void 0:c.call(a))||this.tk();let e,
|
|
1744
|
-
f;c=null!=(f=null==(e=a.eN)?void 0:e.call(a))?f:0;b=Xo(b,c,d);b.stack=a.stack}else b=Xo(b,0,this.tk());Yo(this.C,b);return this}mP(a){this.set(olympe.sc.Hb.C.rp,a);return this}Qa(a,b=!0){return this.C.Qa(a,b)}on(a,b,c,d=!0){return this.C.on(a,b,c,d)}wo(a){return new olympe.sc.Hb(this.C.wo(this.
|
|
1745
|
-
(a(),'noId'):this.
|
|
1746
|
-
this.getParent();for(;null!==d&&d.C!==olympe.sc.uE;)c.push(d),d=d.getParent();b='> '+c.map(e=>{const f=e.Fm();return null!==f?(e=a.model(f),`${a.name(f)||e&&a.name(e)||f} (${e})`):e.ja()}).join('\n> ')}catch(c){b=`No stack available for context ${this.ja()}: ${c}`,this.V.warn(b)}return b}};olympe.sc.Hb.prototype.observeMany=olympe.sc.Hb.prototype.fY;olympe.sc.Hb.prototype.getEvent=olympe.sc.Hb.prototype.lA;olympe.sc.Hb.prototype.getProperty=olympe.sc.Hb.prototype.Ac;
|
|
1744
|
+
f;c=null!=(f=null==(e=a.eN)?void 0:e.call(a))?f:0;b=Xo(b,c,d);b.stack=a.stack}else b=Xo(b,0,this.tk());Yo(this.C,b);return this}mP(a){this.set(olympe.sc.Hb.C.rp,a);return this}Qa(a,b=!0){return this.C.Qa(a,b)}on(a,b,c,d=!0){return this.C.on(a,b,c,d)}wo(a){return new olympe.sc.Hb(this.C.wo(this.se(),a))}QA(a,b){return this.C.QA(a,c=>{b(new olympe.sc.Hb(c))})}dX(a){a=Zo(this.C,a);return a===this.C?this:a&&new olympe.sc.Hb(a)}destroy(){this.C.destroy()}js(a,b){return this.C.js(a,b)}OA(a){this.C.OA(a)}onDestroy(a){return this.lc()?
|
|
1745
|
+
(a(),'noId'):this.se().onDestroy(a)}Lo(a){this.lc()||this.se().Lo(a)}clear(){this.C.clear()}lc(){return this.se().lc()||this.se().$f()}Ac(a){a=$o(this.C,a);return null!==a?new olympe.sc.ui.fm(a,this):null}lA(a){a=$o(this.C,a);return null!==a?new olympe.sc.ui.NB(a,this):null}fY(...a){return rxjs.combineLatest(a.map(b=>{b=$o(this.C,b);return null!==b?this.observe(b):rxjs.of(null)}))}Rb(a){return(null==a?void 0:a.constructor)!==this.constructor?!1:this.C===a.C}tk(){const a=olympe.dc.eb();let b;try{const c=
|
|
1746
|
+
[this];let d=this.getParent();for(;null!==d&&d.C!==olympe.sc.uE;)c.push(d),d=d.getParent();b='> '+c.map(e=>{const f=e.Fm();return null!==f?(e=a.model(f),`${a.name(f)||e&&a.name(e)||f} (${e})`):e.ja()}).join('\n> ')}catch(c){b=`No stack available for context ${this.ja()}: ${c}`,this.V.warn(b)}return b}};olympe.sc.Hb.prototype.observeMany=olympe.sc.Hb.prototype.fY;olympe.sc.Hb.prototype.getEvent=olympe.sc.Hb.prototype.lA;olympe.sc.Hb.prototype.getProperty=olympe.sc.Hb.prototype.Ac;
|
|
1747
1747
|
olympe.sc.Hb.prototype.isDestroyed=olympe.sc.Hb.prototype.lc;olympe.sc.Hb.prototype.clear=olympe.sc.Hb.prototype.clear;olympe.sc.Hb.prototype.offDestroy=olympe.sc.Hb.prototype.Lo;olympe.sc.Hb.prototype.onDestroy=olympe.sc.Hb.prototype.onDestroy;olympe.sc.Hb.prototype.offClear=olympe.sc.Hb.prototype.OA;olympe.sc.Hb.prototype.onClear=olympe.sc.Hb.prototype.js;olympe.sc.Hb.prototype.destroy=olympe.sc.Hb.prototype.destroy;olympe.sc.Hb.prototype.getOtherContext=olympe.sc.Hb.prototype.dX;
|
|
1748
1748
|
olympe.sc.Hb.prototype.onContext=olympe.sc.Hb.prototype.QA;olympe.sc.Hb.prototype.createChild=olympe.sc.Hb.prototype.wo;olympe.sc.Hb.prototype.setParentElement=olympe.sc.Hb.prototype.mP;olympe.sc.Hb.prototype['throw']=olympe.sc.Hb.prototype.throw;olympe.sc.Hb.prototype.waitFor=olympe.sc.Hb.prototype.qB;olympe.sc.Hb.prototype.runner=olympe.sc.Hb.prototype.CY;olympe.sc.Hb.prototype.repeat=olympe.sc.Hb.prototype.repeat;olympe.sc.Hb.prototype.observe=olympe.sc.Hb.prototype.observe;
|
|
1749
1749
|
olympe.sc.Hb.prototype.has=olympe.sc.Hb.prototype.has;olympe.sc.Hb.prototype.get=olympe.sc.Hb.prototype.get;olympe.sc.Hb.prototype.remove=olympe.sc.Hb.prototype.remove;olympe.sc.Hb.prototype.trigger=olympe.sc.Hb.prototype.Qq;olympe.sc.Hb.prototype.set=olympe.sc.Hb.prototype.set;olympe.sc.Hb.prototype.getClosest=olympe.sc.Hb.prototype.pW;olympe.sc.Hb.prototype.getParent=olympe.sc.Hb.prototype.getParent;
|
|
1750
|
-
olympe.sc.Hb.C={PRODUCTION:'__production',EDITION:'__editionMode',TRANSACTION:'__transaction',rp:'__htmlContainer',vp:'__dockableElement',wB:'__appHasStarted'};olympe.sc.RU=class extends olympe.sc.Hb{constructor(a){super(a);this.D=new olympe.j.ee('SC Update Context',super.
|
|
1750
|
+
olympe.sc.Hb.C={PRODUCTION:'__production',EDITION:'__editionMode',TRANSACTION:'__transaction',rp:'__htmlContainer',vp:'__dockableElement',wB:'__appHasStarted'};olympe.sc.RU=class extends olympe.sc.Hb{constructor(a){super(a);this.D=new olympe.j.ee('SC Update Context',super.se());const b=a.js(()=>{b&&a.OA(b);this.D.destroy()})}se(){return this.D}js(a,b){return this.se().onDestroy(a,null!=b?b:olympe.oa.bf())}};let ap=0;function Wo(a,b){b=olympe.dc.Ya(b);let c,d,e,f;return null!=(f=null!=(e=null==(c=a.W)?void 0:c.get('I#'+b))?e:null==(d=a.W)?void 0:d.get('IO#'+b))?f:b}function Yo(a,b){if(null===a.parent)a.V.error(`An error occurred in a brick: ${b.toString()}`);else if(a.$){var c=bp(olympe.dc.CloudObject.get(a.$));null!==c&&cp(a,c).some(d=>{let e,f;return 0<(null==(e=a.D)?void 0:null==(f=e.get(d))?void 0:f.size)})&&!a.O.has('$'+c)?a.set(c,b):Yo(a.parent,b)}else Yo(a.parent,b)}
|
|
1751
1751
|
function Zo(a,b){if(b===a.id||a.R.has(b)||!b)return a;for(a=a.parent;a;){if(b===a.ja()||a.R.has(b))return a;const c=dp(a.children,b);if(c)return c;a=a.getParent()}return null}function ep(a,b,c=0){null===a.$c&&(a.$c=new Map);a.$c.has(b.ja())||(a.$c.set(b.ja(),{WA:b,depth:c}),fp(a,d=>{(-1===b.O||c<b.O)&&ep(d,b,c+1)}),a.onDestroy(()=>{gp(a,b.ja())}));return b.ja()}
|
|
1752
1752
|
function gp(a,b){if(null===a.$c||!a.$c.has(b))return!1;const {WA:c,depth:d}=a.$c.get(b);fp(a,f=>{gp(f,b)});0===d&&c.D();const e=a.$c.delete(b);0===a.$c.size&&(a.$c=null);return e}function $o(a,b){let c;return(null==(c=a.W)?void 0:c.get('IO#'+b))||null}
|
|
1753
1753
|
function hp(a){a.C.Ve(()=>{fp(a,c=>c.destroy())});a.C.onDestroy(()=>{void 0!==a.Qa(olympe.sc.Hb.C.TRANSACTION,!1)&&a.V.warn(`The context ${a.ja()} is being destroyed but still has unreleased transactions. You probably forgot to end a transaction.`);a.clear();let c;if(null!=(c=a.parent)){let d;null==(d=c.children)||d.delete(a.ja());let e;0===(null==(e=c.children)?void 0:e.size)&&(c.children=null)}a.R.clear()});let b;null==(b=a.parent)||ip(b,a)}
|
|
1754
|
-
function dp(a,b){if(null===a)return null;if(a.has(b))return a.get(b);for(const c of a.values())if(c.ca&&!c.id.startsWith('_')&&(a=dp(c.children,b)))return a;return null}function jp(a,b,...c){if(null!==a.$c)for(const {WA:d,depth:e}of a.$c.values())d.process(a,b,e,...c)}function kp(a,b){a.$=olympe.dc.Ya(b);a.ca=b.
|
|
1754
|
+
function dp(a,b){if(null===a)return null;if(a.has(b))return a.get(b);for(const c of a.values())if(c.ca&&!c.id.startsWith('_')&&(a=dp(c.children,b)))return a;return null}function jp(a,b,...c){if(null!==a.$c)for(const {WA:d,depth:e}of a.$c.values())d.process(a,b,e,...c)}function kp(a,b){a.$=olympe.dc.Ya(b);a.ca=b.kg().LA();b.da().forEach(c=>{a.id===c||a.R.has(c)||(a.R.add(c),So(a,c,a))});a.W=b.W();jp(a,olympe.sc.$c.ig.C.INIT)}
|
|
1755
1755
|
function lp(a){a.da=!0;let b;null==(b=a.children)||b.forEach(c=>{lp(c)})}function mp(a){a.da=!1;let b;null==(b=a.children)||b.forEach(c=>{mp(c)})}function cp(a,b){return['*',a.id,...a.R].map(c=>`${'@'}${c}.${b}`)}function np(a,b,c,d){c.forEach(f=>{let g,k;null==(g=a.D)||null==(k=g.get(f))||k.forEach(l=>{l(d)})});let e;null==(e=a.children)||e.forEach(f=>{!f.da&&f.data.has(b)||np(f,b,c,d)})}
|
|
1756
1756
|
function op(a,b,c){a.D||(a.D=new Map);let d=a.D.get(b);void 0===d&&(d=new Map,a.D.set(b,d));ap++;const e=ap;d.set(e,c);return()=>{const f=a.D.get(b);f&&(f.delete(e),0===f.size&&a.D.delete(b))}}function So(a,b,c){a.O.add(b);let d,e;null==(d=a.D)||null==(e=d.get('&'+b))||e.forEach(f=>{f(c)});fp(a,f=>{f.O.has(b)||So(f,b,c)});a.O.delete(b)}function fp(a,b){let c;null==(c=a.children)||c.forEach(b)}function pp(a,b){a.data.forEach((c,d)=>b(c,d.slice(1)))}
|
|
1757
|
-
function qp(a){var b=olympe.sc.$c.
|
|
1758
|
-
olympe.sc.sp=class{constructor(a,b='no name',c=olympe.sc.uE){this.id=a;this.Bd=b;this.R=new Set;this.parent=c;this.C=new olympe.j.ee('SC Context');this.data=new Map;this.$=this.T=this.children=this.D=null;this.ca=!1;this.O=new Set;this.da=!1;this.W=null;this.V=olympe.gb.Cb('sc');this.$c=null;hp(this)}ja(){return this.id}getParent(){return this.parent}Fm(){return this.$}set(a,b){if(!this.C
|
|
1759
|
-
g))?k:null==(d=this.W)?void 0:d.get('IO#'+g))?l:g;c='$'+a;var e;d=null!=(e=this.data.get(c))?e:null;b=null!=b?b:null;if(e=!this.O.has(c)){a:{if('function'===typeof(null==b?void 0:b.Rb))try{var f=b.Rb(d);break a}catch(m){f=!1;break a}f=b===d}e=!f}e&&(null===b?this.data.delete(c):this.data.set(c,b),null!==this.$c&&0<this.$c.size&&jp(this,olympe.sc.$c.
|
|
1760
|
-
c?olympe.dc.Ya(c):'*';a=op(this,'@'+f+'.'+e,b);c=c?(c=Zo(this,f))?c.Qa(e,!1):void 0:this.Qa(e);void 0!==c&&b(c);if(d)olympe.j.yb().onDestroy(a);return a}has(a,b=!1){a='$'+Wo(this,a);let c=this.data.has(a),d=this.getParent();if(b)for(;!c&&d;)c=d.data.has(a),d=d.getParent();return c}wo(a,b,c){const d=null!=c?c:'_'+olympe.oa.bf();if(a.lc()||a
|
|
1761
|
-
new olympe.sc.sp(d,b,this));null!==this.$c&&0<this.$c.size&&this.$c.forEach(({WA:f,depth:g})=>{(-1===f.O||g<f.O)&&ep(e,f,g+1)});return e}QA(a,b){const c=Zo(this,a);if(c)return b(c),()=>{};const d=op(this,'&'+a,e=>{let f;null==(f=d)||f();b(e)});return d}Qa(a,b=!0){a='$'+Wo(this,a);let c=this.data.get(a),d=this.getParent();if(b)for(;void 0===c&&null!==d;)c=d.data.get(a),d=d.getParent();return c}destroy(){this.C
|
|
1762
|
-
b){if(this.C.lc())a();else return ap++,b=null!=b?b:String(ap),null===this.T&&(this.T=new Map),this.T.set(b,a),b;return b||'noId'}OA(a){null!==this.T&&this.T.delete(a)}onDestroy(a){return this.lc()?(a(),'noId'):this.C.onDestroy(a)}clear(){if(!this.C.lc()){jp(this,olympe.sc.$c.
|
|
1763
|
-
olympe.sc.sp.C={pC:'I#',OC:'O#',pR:'IO#'};function rp(a,b,c){return(c=c.Fm())?`${a}.${c}.${b}`:`${a}.${b}`}olympe.sc.$c.
|
|
1757
|
+
function qp(a){var b=olympe.sc.$c.ig.D.Rp;const c=[];if(null!==a.$c)for(const {WA:d}of a.$c.values())d.getType()===b&&(c.push(d.ja()),d.D(),gp(a,d.ja()))}function ip(a,b){null===a.children&&(a.children=new Map);a.children.set(b.id,b)}
|
|
1758
|
+
olympe.sc.sp=class{constructor(a,b='no name',c=olympe.sc.uE){this.id=a;this.Bd=b;this.R=new Set;this.parent=c;this.C=new olympe.j.ee('SC Context');this.data=new Map;this.$=this.T=this.children=this.D=null;this.ca=!1;this.O=new Set;this.da=!1;this.W=null;this.V=olympe.gb.Cb('sc');this.$c=null;hp(this)}ja(){return this.id}getParent(){return this.parent}Fm(){return this.$}set(a,b){if(!this.C.$f()&&!this.C.lc()){const g=olympe.dc.Ya(a);var c,d;let k,l;a=null!=(l=null!=(k=null==(c=this.W)?void 0:c.get('O#'+
|
|
1759
|
+
g))?k:null==(d=this.W)?void 0:d.get('IO#'+g))?l:g;c='$'+a;var e;d=null!=(e=this.data.get(c))?e:null;b=null!=b?b:null;if(e=!this.O.has(c)){a:{if('function'===typeof(null==b?void 0:b.Rb))try{var f=b.Rb(d);break a}catch(m){f=!1;break a}f=b===d}e=!f}e&&(null===b?this.data.delete(c):this.data.set(c,b),null!==this.$c&&0<this.$c.size&&jp(this,olympe.sc.$c.ig.C.zr,a,b),f=cp(this,a),this.O.add(c),np(this,c,f,b),this.O.delete(c))}}on(a,b,c,d=!0){if(this.C.lc()||this.C.$f())return()=>{};const e=Wo(this,a),f=
|
|
1760
|
+
c?olympe.dc.Ya(c):'*';a=op(this,'@'+f+'.'+e,b);c=c?(c=Zo(this,f))?c.Qa(e,!1):void 0:this.Qa(e);void 0!==c&&b(c);if(d)olympe.j.yb().onDestroy(a);return a}has(a,b=!1){a='$'+Wo(this,a);let c=this.data.has(a),d=this.getParent();if(b)for(;!c&&d;)c=d.data.has(a),d=d.getParent();return c}wo(a,b,c){const d=null!=c?c:'_'+olympe.oa.bf();if(a.lc()||a.$f())throw Error(`Try to create new child context in a destroyed context ${a.ja()}, probably because \`runner()\` is called on a destroyed context`);const e=a.run(()=>
|
|
1761
|
+
new olympe.sc.sp(d,b,this));null!==this.$c&&0<this.$c.size&&this.$c.forEach(({WA:f,depth:g})=>{(-1===f.O||g<f.O)&&ep(e,f,g+1)});return e}QA(a,b){const c=Zo(this,a);if(c)return b(c),()=>{};const d=op(this,'&'+a,e=>{let f;null==(f=d)||f();b(e)});return d}Qa(a,b=!0){a='$'+Wo(this,a);let c=this.data.get(a),d=this.getParent();if(b)for(;void 0===c&&null!==d;)c=d.data.get(a),d=d.getParent();return c}destroy(){this.C.$f()||this.C.lc()||(jp(this,olympe.sc.$c.ig.C.Iy),this.C.destroy(),jp(this,olympe.sc.$c.ig.C.tj))}js(a,
|
|
1762
|
+
b){if(this.C.lc())a();else return ap++,b=null!=b?b:String(ap),null===this.T&&(this.T=new Map),this.T.set(b,a),b;return b||'noId'}OA(a){null!==this.T&&this.T.delete(a)}onDestroy(a){return this.lc()?(a(),'noId'):this.C.onDestroy(a)}clear(){if(!this.C.lc()){jp(this,olympe.sc.$c.ig.C.zy);let a;null==(a=this.T)||a.forEach(b=>b());jp(this,olympe.sc.$c.ig.C.Ay)}}lc(){return this.C.lc()}se(){return this.C}};olympe.sc.sp.prototype.getParent=olympe.sc.sp.prototype.getParent;
|
|
1763
|
+
olympe.sc.sp.C={pC:'I#',OC:'O#',pR:'IO#'};function rp(a,b,c){return(c=c.Fm())?`${a}.${c}.${b}`:`${a}.${b}`}olympe.sc.$c.ig=class{constructor(a=-1){this.id=olympe.oa.Rr();this.active=!0;this.O=a}D(){this.active=!1}ja(){return this.id}getType(){}process(){}};olympe.sc.$c.ig.C={INIT:'INIT',zr:'SET',zy:'CLEAR',Ay:'CLEARED',Iy:'DESTROY',tj:'DESTROYED'};olympe.sc.$c.ig.D={Rp:'REMOTE',ES:'LOCAL',ho:'PROFILER'};olympe.sc.uj=class a{constructor(){this.D=this.R=this.T=null;this.W=new Map;this.O=new Map;this.C=new olympe.oa.nD(1E4);jb(this.C,b=>{qp(b)})}$(b,c,d){const e=b.body(),f=e.c,g=this.W.get(f);switch(e.t){case olympe.sc.uj.C.rT:c=this.O.get(e.f);b.ai(c).catch(m=>{d.error('Unable to reply with paths: ',m)});break;case olympe.sc.uj.C.sT:const k=f+c,l=(m,n,p=0)=>{pp(m,(r,t)=>{let u;r instanceof olympe.dc.CloudObject?u=a.O(r):u=r;let v;r=null!=(v=m.Fm())?v:'';0<r.length&&(r+='.');n.push([`${p}.${r}${t}`,
|
|
1764
1764
|
u])})};b.jE(k).then(()=>{const m=[];l(g,m,0);fp(g,p=>{l(p,m,1)});olympe.Y.de.publish(k,{t:olympe.sc.uj.C.oR,v:m,ts:0}).catch(p=>{d.error('Error publishing on service : ',p)});const n=new olympe.sc.$c.QT(k);ep(g,n);this.C.has(g)?ib(this.C,g):this.C.add(g)}).catch(m=>{d.error('Error notifying on a contextId : ',m)});break;case olympe.sc.uj.C.uT:void 0!==g&&this.C.has(g)&&ib(this.C,g);break;case olympe.sc.uj.C.wp:void 0!==g&&(this.C.delete(g),qp(g))}}da(b,c,d){this.T=new olympe.Y.de('discovery_debug_id',
|
|
1765
|
-
c);this.T.Bu().subscribe(e=>{var f=e.body();if(f.t===olympe.sc.uj.C.xQ){e=f.i;f=f.f;if(!this.O.has(f)){const g=this.ca(f,c,b);if(0!==g.length)this.O.set(f,g);else return}null===this.D&&(this.D=olympe.oa.Rr(),f=new olympe.j.ee(this.D,c.
|
|
1765
|
+
c);this.T.Bu().subscribe(e=>{var f=e.body();if(f.t===olympe.sc.uj.C.xQ){e=f.i;f=f.f;if(!this.O.has(f)){const g=this.ca(f,c,b);if(0!==g.length)this.O.set(f,g);else return}null===this.D&&(this.D=olympe.oa.Rr(),f=new olympe.j.ee(this.D,c.se()),this.R=new olympe.Y.de(this.D,f),this.R.Bu().subscribe(g=>{this.$(g,b,d)}));olympe.Y.de.publish(e,{t:olympe.sc.uj.C.KP,n:olympe.sa.getParameter(olympe.sc.pa.oG)||'no name',a:b,s:this.D}).catch(g=>{d.error('Error publishing on draw service : '+g)})}})}ca(b,c,d){const e=
|
|
1766
1766
|
[],f=olympe.dc.eb(),g=(k,l)=>{fp(k,m=>{if(null!==m.Fm()){const n=olympe.dc.CloudObject.get(m.Fm()).ml(olympe.sc.Runnable.ca).zf();if(null!==n){const p=l+'/'+f.name(n);n.ka()===b&&(e.push([p,m.ja()]),this.W.set(m.ja(),m));g(m,p)}}})};g(c.C,f.name(d));return e}static D(b,c,d){let e=d;d instanceof olympe.dc.CloudObject&&(e=a.O(d));olympe.Y.de.publish(b,{t:olympe.sc.uj.C.Pz,k:c,v:e,ts:Date.now()}).catch(f=>{olympe.gb.Cb('Debugger').error('Error publishing on service : ',f)})}static O(b){if(null===b||
|
|
1767
1767
|
void 0===b)return'<null>';const c=olympe.dc.eb();if(b instanceof olympe.dc.CloudObject){var d=b.De();if(!c.me(d,olympe.sc.qg))return b.toString();let f=`${b.Qe().name()} (${b.ka()})`;var e=olympe.dc.CloudObject.get(d);d=olympe.dc.nb.from(e).Yp(olympe.dc.CloudObject.extendRel,!0).Zi().oc(olympe.dc.CloudObject.propertyRel).Zi().zf();e=olympe.dc.nb.from(e).Yp(olympe.dc.CloudObject.extendRel,!0).Zi().oc(olympe.dc.CloudObject.px).Zi().zf();d=d.filter(([g])=>g instanceof olympe.sc.qg);0!==d.length&&(f+=
|
|
1768
|
-
'<br> ',f+='Properties:<br>',d.forEach(([,g])=>{f+=' ';f+=' - '+c.name(g)+' : '+c.Ac(b.ka(),g)+'<br>'}));d=e.filter(([g])=>g instanceof olympe.sc.qg);0!==d.length&&(f+=' ',f+='Relations:<br>',d.forEach(([,g])=>{f+=' ';f+=' - '+c.name(g)+'<br>'}));return f}return b.toString()}};olympe.sc.uj.R='discovery_debug_id';olympe.sc.uj.C={xQ:0,KP:1,rT:2,sT:3,oR:4,Pz:5,uT:6,wp:7};olympe.sc.$c.p0=class extends olympe.sc.$c.
|
|
1768
|
+
'<br> ',f+='Properties:<br>',d.forEach(([,g])=>{f+=' ';f+=' - '+c.name(g)+' : '+c.Ac(b.ka(),g)+'<br>'}));d=e.filter(([g])=>g instanceof olympe.sc.qg);0!==d.length&&(f+=' ',f+='Relations:<br>',d.forEach(([,g])=>{f+=' ';f+=' - '+c.name(g)+'<br>'}));return f}return b.toString()}};olympe.sc.uj.R='discovery_debug_id';olympe.sc.uj.C={xQ:0,KP:1,rT:2,sT:3,oR:4,Pz:5,uT:6,wp:7};olympe.sc.$c.p0=class extends olympe.sc.$c.ig{constructor(a=-1){super(a);this.C=new Map}getType(){return olympe.sc.$c.ig.D.ES}process(a,b,c,...d){if(this.active&&b===olympe.sc.$c.ig.C.zr){a=rp(c,Wo(a,d[0]),a);d=d[1];let e;null==(e=this.C.get(a))||e(d)}}on(a,b){this.C.set(a,b)}};function sp(a,b,c,d=new Map){for(var e=[];b;){const n=b.Fm();if(!n)break;e.push(n);b=b.getParent()}pb(a.C,c,d.set('context',e));var f;let g;for(const n of[...e,null==(f=d)?void 0:f.get('propId'),null==(g=d)?void 0:g.get('type')])if(c=n,'string'===typeof c&&!a.R.has(c)){e=a;f=c;e.eb||(e.eb=olympe.dc.eb());d=e.eb.name(f);e=(f=e.eb.model(f))?e.eb.name(f):'';var [k,l,m]=[d,f,e];d=a.C;e=(new Map).set(c,k).set(l,m);c=(new Map).set(c,l);for(const [p,r]of e.entries())d.R.set(p,r);for(const [p,r]of c.entries())d.O.set(p,
|
|
1769
1769
|
r)}}
|
|
1770
|
-
olympe.sc.$c.ET=class extends olympe.sc.$c.
|
|
1771
|
-
olympe.sc.logic.Le),sp(this,a,b?e:d?f:c,new Map([['propId',r],['value',t],['type',g]]))):d&&(e=this.eb.me(r,olympe.dm.Property),f=this.eb.Wd(r,olympe.dm.Property.typeRel),sp(this,a,e?g:c,new Map([['propId',r],['value',t],['type',f]])))}else b===olympe.sc.$c.
|
|
1772
|
-
const tp={pC:'input',OC:'output',yT:'prop',INIT:'init',zy:'clear',Ay:'cleared',Iy:'destroy',tj:'destroyed',nT:'other'};olympe.sc.$c.QT=class extends olympe.sc.$c.
|
|
1770
|
+
olympe.sc.$c.ET=class extends olympe.sc.$c.ig{constructor(a){super();this.C=a;this.eb=olympe.dc.eb();this.R=new Set}getType(){return olympe.sc.$c.ig.D.ho}process(a,b,c,...d){var e=tp.pC,f=tp.OC,g=tp.yT;const k=tp.INIT,l=tp.zy,m=tp.Ay,n=tp.Iy,p=tp.tj;c=tp.nT;if(b===olympe.sc.$c.ig.C.zr){const [r,t]=d;b=(d=a.Fm())?olympe.dc.eb().me(d,olympe.sc.logic.Function):!1;d=d?olympe.dc.eb().me(d,olympe.sc.ui.Renderable):!1;b?(g=this.eb.Wd(r,olympe.dm.Property.typeRel),b=this.eb.me(r,olympe.sc.logic.ie),d=this.eb.me(r,
|
|
1771
|
+
olympe.sc.logic.Le),sp(this,a,b?e:d?f:c,new Map([['propId',r],['value',t],['type',g]]))):d&&(e=this.eb.me(r,olympe.dm.Property),f=this.eb.Wd(r,olympe.dm.Property.typeRel),sp(this,a,e?g:c,new Map([['propId',r],['value',t],['type',f]])))}else b===olympe.sc.$c.ig.C.INIT?sp(this,a,k):b===olympe.sc.$c.ig.C.zy?sp(this,a,l):b===olympe.sc.$c.ig.C.Ay?sp(this,a,m):b===olympe.sc.$c.ig.C.Iy?sp(this,a,n):b===olympe.sc.$c.ig.C.tj&&sp(this,a,p)}};
|
|
1772
|
+
const tp={pC:'input',OC:'output',yT:'prop',INIT:'init',zy:'clear',Ay:'cleared',Iy:'destroy',tj:'destroyed',nT:'other'};olympe.sc.$c.QT=class extends olympe.sc.$c.ig{constructor(a){super(1);this.R=a;this.C=new Map;this.db=olympe.dc.eb()}getType(){return olympe.sc.$c.ig.D.Rp}D(){super.D();for(const a of this.C.values())a();this.C.clear()}process(a,b,c,...d){if(this.active&&b===olympe.sc.$c.ig.C.zr&&void 0!==d[0]&&null!==d[0]){const e=rp(c,Wo(a,d[0]),a),f=d[1];let g;null==(g=this.C.get(e))||g();this.C.delete(e);if(f instanceof olympe.dc.CloudObject&&f.Qe()instanceof olympe.sc.qg){const k=Ri(this.db,f,()=>{olympe.sc.uj.D(this.R,
|
|
1773
1773
|
e,f)});this.C.set(e,()=>{Si(this.db,f,k)})}olympe.sc.uj.D(this.R,e,f)}}};olympe.sc.Metadata=class extends olympe.dc.CloudObject{qa(){return this.yg(this.FA())}ta(){return this.yg(this.GA())}ae(){return new olympe.j.ga(this.yg(this.FA()),this.yg(this.GA()))}FA(){}GA(){}};olympe.sc.Metadata.U=olympe.dc.Ja.C('0161ae936c62f9fcd131',olympe.sc.Metadata);h=olympe.sc.Metadata.prototype;h.qa.K=olympe.j.J.D;h.ta.K=olympe.j.J.D;h.ae.K=olympe.j.J.W;h.FA.K=olympe.j.J.O;h.GA.K=olympe.j.J.O;olympe.sc.Ch=class extends olympe.dc.CloudObject{D(){return this.Rd(olympe.sc.Ch.O)}C(){return this.Rd(olympe.sc.Ch.C)}};olympe.sc.Ch.U=olympe.dc.Ja.C('01703376c4a81c0e9d90',olympe.sc.Ch);olympe.sc.Ch.O=olympe.sc.Ch.U.fa('01703376c4a81c0e9d91');olympe.sc.Ch.C=olympe.sc.Ch.U.fa('01703376c4a81c0e9d92');olympe.sc.Ch.D=olympe.sc.Ch.U.tb('01703376c4a81c0e9d93');Y(olympe.dc.CloudObject.U,olympe.sc.Ch.D);olympe.sc.Ch.prototype.D.K=olympe.j.J.R;olympe.sc.Ch.prototype.C.K=olympe.j.J.R;olympe.sc.jf={};olympe.sc.jf.Yi={NQ:'folders',HK:'screenflow',oD:'ui-design',QK:'software-intelligence',Ys:'data-management',X0:'projects'};olympe.sc.bl=class extends olympe.dc.CloudObject{constructor(a,b){super(a,b)}gf(){return this.yg(olympe.sc.bl.C)}};olympe.sc.bl.U=olympe.dc.Ja.C('019131fb930466a1ad79',olympe.sc.bl);olympe.sc.bl.C=olympe.sc.bl.U.fa('016d1bb681929c2cc3f1');olympe.sc.bl.D=olympe.sc.bl.U.tb('019131fb930466a1ad7a');Y(olympe.dc.CloudObject.U,olympe.sc.bl.D);olympe.sc.bl.prototype.gf.K=olympe.j.J.D;olympe.sc.Sh=class extends olympe.dm.BrickMetadata{Di(){return olympe.sc.jf.Yi.QK}C(){return this.pc(olympe.sc.Sh.C,olympe.sc.logic.Bt)}D(){return this.pc(olympe.sc.Sh.D,olympe.sc.logic.rr)}};olympe.sc.Sh.U=olympe.dc.Ja.C('011100000000000adef0',olympe.sc.Sh);olympe.sc.Sh.C=olympe.sc.Sh.U.tb('016ac4f59a2917fdef01');olympe.sc.Sh.D=olympe.sc.Sh.U.tb('016ac4f59a2917fdef02');olympe.sc.Sh.U.C=(a,b)=>Gn(a,b||'New function signature',olympe.sc.Sh,olympe.sc.logic.ki).ka();
|
|
1774
1774
|
olympe.sc.Sh.prototype.C.K=new olympe.j.J(()=>olympe.dc.Kb,[]);olympe.sc.Sh.prototype.D.K=new olympe.j.J(()=>olympe.dc.Kb,[]);function up(a,b){a.$().forEach(c=>c.call(a,b,(d,e)=>{null===e?b.remove(d):b.set(d,e)}))}function vp(a,b){b=b.filter(c=>'string'===typeof c&&a.db.me(c,olympe.sc.logic.qf));b.sort((c,d)=>{let e;c=null!=(e=a.db.Ac(c,olympe.sc.logic.qf.C,!0))?e:0;let f;d=null!=(f=a.db.Ac(d,olympe.sc.logic.qf.C,!0))?f:0;return c-d});return b}function wp(a){return vp(a,a.db.pc(a.tag,olympe.sc.yc.O))}function xp(a){return vp(a,a.db.pc(a.tag,olympe.sc.yc.D))}
|
|
1775
1775
|
olympe.sc.yc=class extends olympe.dm.BrickMetadata{Ea(a,b,c,d,e=!0){e||olympe.gb.Cb('sc').error('parameter own= false ignored, investigate');return olympe.j.kj(Wb(this.Go(a,olympe.dc.Ad.Hw,c)),d)}$(){return[]}za(a,b){const c=this.db,d=olympe.oa.pk();a=olympe.j.yb();Ri(c,this.tag,a.re((e,f)=>{b(e,olympe.dc.Ad.ug(f))}),d);a.onDestroy(()=>{Si(c,this.tag,d)})}T(){return[]}O(){return rxjs.of([])}YN(){return this.pc(olympe.sc.yc.R,olympe.sc.Runnable)}sW(){return this.pc(olympe.sc.yc.T,olympe.sc.Runnable)}nq(){return this.db.Ac(this,
|
|
1776
1776
|
olympe.sc.yc.da)}LA(){return null!==this.db.Wd(this.tag,olympe.sc.Runnable.W.fe())}getInputs(){return this.pc(olympe.sc.yc.O,olympe.sc.logic.ie)}getOutputs(){return this.pc(olympe.sc.yc.D,olympe.sc.logic.Le)}W(){return[olympe.sc.yc.Oa]}};olympe.sc.yc.U=olympe.dc.Ja.C('0112000000000000def0',olympe.sc.yc);olympe.sc.yc.da=olympe.sc.yc.U.fa('01692aa71f3108454479');olympe.sc.yc.sb=olympe.sc.yc.U.fa('0166446c1f128ebc903a');olympe.sc.yc.Oa=olympe.sc.yc.U.fa('0166446c1f128ebc904e');olympe.sc.yc.R=olympe.sc.yc.U.tb('01692a4af82e8984742c');
|
|
1777
1777
|
olympe.sc.yc.T=olympe.sc.yc.U.tb('01692a4af82e8984742d');olympe.sc.yc.ca=olympe.sc.yc.U.tb('01692a4af82e8984742e');olympe.sc.yc.O=olympe.sc.yc.U.tb('01621fb84e320000f00a');olympe.sc.yc.D=olympe.sc.yc.U.tb('01621fb84e320000f00b');olympe.sc.yc.gd=olympe.sc.yc.U.tb('0171838bcfed0000e00e');olympe.sc.yc.Yc=olympe.sc.yc.U.tb('0171838bcfed0000a00a');h=olympe.sc.yc.prototype;h.Ea.K=olympe.j.J.O;h.YN.K=new olympe.j.J(()=>olympe.dc.Kb,[]);h.sW.K=new olympe.j.J(()=>olympe.dc.Kb,[]);h.nq.K=olympe.j.J.O;
|
|
1778
|
-
h.LA.K=olympe.j.J.O;h.getInputs.K=new olympe.j.J(()=>olympe.dc.Kb,[]);h.getOutputs.K=new olympe.j.J(()=>olympe.dc.Kb,[]);function bp(a){let b;return null!=(b=a.
|
|
1779
|
-
function zp(a,b){kp(b.C,a);up(a.
|
|
1780
|
-
function Cp(a,b){let c,d,e;a.V.C()&&(e=a.db.name(a.De()),c=`Brick ${e} successfully run`,d=`Brick ${e} successfully cleared`);const f=Dp(a,b),g=a.setupExecution(b).pipe(rxjs.operators.map(k=>{if(!b.lc()&&(b.clear(),null!==k)){const l=Array.isArray(k)?k:[k],m=new olympe.sc.RU(b.C);m.
|
|
1781
|
-
function Ep(a,b,c,d){let e=[];const f=Ui(a.db,b,c,(g,k)=>{if(g){const l=Ro(d,k),m=olympe.dc.CloudObject.get(k);m instanceof olympe.sc.logic.Bh&&null!==e?e.push(()=>m.run(l)):m.run(l)}else{let l;null==(l=To(d,k))||l.destroy()}});e.forEach(g=>g());e=null;d.
|
|
1782
|
-
function Ap(a,b){if(1===b.length)return[(d,e)=>{null!==e?a.set(d,e):a.remove(d)}];const c=b.map(()=>new Map);return c.map(d=>(e,f)=>{null!==f?d.set(e,f):d.delete(e);a:{for(const g of c)if(f=g.get(e),void 0!==f){a.set(e,f);break a}a.remove(e)}})}function Bp(a,b,c,d){b=b.
|
|
1783
|
-
olympe.sc.Runnable=class extends olympe.dm.BrickMetadata{constructor(a,b,c){super(a,b);this.V=c}run(a){a.
|
|
1784
|
-
d,olympe.sc.yc.ca,a)}
|
|
1785
|
-
b,c,d,e=!0){a=b.wa(a,c,e);void 0!==d&&olympe.j.kj(a,d);return a}O(a,b,c,d,e){olympe.j.Fl([d],f=>{b.set(a,olympe.j.CO(f)?f.valueOf():f)});return this.Ea(a,b,c,e)}T(){return[this.ca,this.$]}ca(a,b){Bp(this,a,b,null)}$(a,b){Bp(this,a,null,b)}ma(a,b){const c=this.db,d=olympe.sc.logic.jd.O.fe(),e=olympe.sc.logic.jd.C,f=olympe.sc.logic.jd.D;this.fA(d,g=>{var k=g.ka();if(k=c.Wd(k,e)||c.Wd(k,f))return Fp(g,a,b.bind(null,k))})}sb(a,b){const c=olympe.sc.
|
|
1778
|
+
h.LA.K=olympe.j.J.O;h.getInputs.K=new olympe.j.J(()=>olympe.dc.Kb,[]);h.getOutputs.K=new olympe.j.J(()=>olympe.dc.Kb,[]);function bp(a){let b;return null!=(b=a.kg().W().map(olympe.dc.Ya)[0])?b:null}function yp(a){const b=new olympe.dc.Tc;a=b.create(a);b.persist(a,!1);b.Kd((d,e)=>{d||olympe.gb.Cb('sc').error(`Error occurred for transaction executed by createLocalRunnable: ${e}`)});const c=olympe.dc.CloudObject.get(a);olympe.j.yb().onDestroy(()=>{const d=new olympe.dc.Tc;d.delete(c);d.Kd()});return c}
|
|
1779
|
+
function zp(a,b){kp(b.C,a);up(a.kg(),b);const c=a.T(),d=Ap(b,c),e=[];c.forEach((f,g)=>{f===a.ca?e[0]=g:f===a.$&&(e[1]=g)});void 0!==e[0]&&void 0!==e[1]&&(Bp(a,b,d[e[0]],d[e[1]]),c[e[0]]=null,c[e[1]]=null);c.forEach((f,g)=>{f&&f.call(a,b,d[g])})}
|
|
1780
|
+
function Cp(a,b){let c,d,e;a.V.C()&&(e=a.db.name(a.De()),c=`Brick ${e} successfully run`,d=`Brick ${e} successfully cleared`);const f=Dp(a,b),g=a.setupExecution(b).pipe(rxjs.operators.map(k=>{if(!b.lc()&&(b.clear(),null!==k)){const l=Array.isArray(k)?k:[k],m=new olympe.sc.RU(b.C);m.se().run(()=>q(function*(){try{yield a.update(m,l,f)}catch(n){m.throw(n)}}));return!0}return!1})).subscribe(rxjs.Subscriber.create(k=>k?a.V.debug(c):a.V.debug(d),k=>b.throw(k),()=>a.V.debug(`Brick ${e} completed`)));b.onDestroy(g.unsubscribe.bind(g))}
|
|
1781
|
+
function Ep(a,b,c,d){let e=[];const f=Ui(a.db,b,c,(g,k)=>{if(g){const l=Ro(d,k),m=olympe.dc.CloudObject.get(k);m instanceof olympe.sc.logic.Bh&&null!==e?e.push(()=>m.run(l)):m.run(l)}else{let l;null==(l=To(d,k))||l.destroy()}});e.forEach(g=>g());e=null;d.se().onDestroy(a.db.D.bind(a.db,b,c,f))}function Dp(a,b){return a.kg().T(b)}
|
|
1782
|
+
function Ap(a,b){if(1===b.length)return[(d,e)=>{null!==e?a.set(d,e):a.remove(d)}];const c=b.map(()=>new Map);return c.map(d=>(e,f)=>{null!==f?d.set(e,f):d.delete(e);a:{for(const g of c)if(f=g.get(e),void 0!==f){a.set(e,f);break a}a.remove(e)}})}function Bp(a,b,c,d){b=b.se();const e=Ri(a.db,a.tag,b.re((f,g,k)=>{const l=k?d:c;null!==l&&(l(f,olympe.dc.Ad.ug(g)),k&&c!==l&&(null==c||c(f,null)))}));b.onDestroy(()=>{Si(a.db,a.tag,e)})}
|
|
1783
|
+
olympe.sc.Runnable=class extends olympe.dm.BrickMetadata{constructor(a,b,c){super(a,b);this.V=c}run(a){a.se().run(()=>{zp(this,a);this.init(a);a.js(this.clear.bind(this,a));a.onDestroy(this.destroy.bind(this,a));Cp(this,a);this.ue(a)})}kg(){return this.Qe()}init(a){this.onInit(a)}update(a,b,c){const d=this.kg();if(d.nq())this.onUpdate(a,b,c);else this.V.debug(`Softcoded runnable ${this.db.name(this)} with tag ${this.tag} running in context ${a.ja()}`),Ep(this,d,olympe.sc.yc.R,a),this.Ha()&&Ep(this,
|
|
1784
|
+
d,olympe.sc.yc.ca,a)}ue(a){a.Qq(olympe.sc.yc.sb)}clear(){}destroy(a){this.onDestroy(a)}setupExecution(a){return this.kg().O(a)}onInit(){}onUpdate(){const a=this.De(),b=this.db.name(a),c=this.db.name(this.db.model(a));this.V.error(`No code was found for ${b} (${c}: ${a})\n\n`+'This is probably because the code has not yet been deployed to the environment, or because the package.json does not import the required dependencies.')}onDestroy(){}getInputs(){return wp(this.kg())}getOutputs(){return xp(this.kg())}da(){return[]}W(){return null}Ha(){return!1}Ea(a,
|
|
1785
|
+
b,c,d,e=!0){a=b.wa(a,c,e);void 0!==d&&olympe.j.kj(a,d);return a}O(a,b,c,d,e){olympe.j.Fl([d],f=>{b.set(a,olympe.j.CO(f)?f.valueOf():f)});return this.Ea(a,b,c,e)}T(){return[this.ca,this.$]}ca(a,b){Bp(this,a,b,null)}$(a,b){Bp(this,a,null,b)}ma(a,b){const c=this.db,d=olympe.sc.logic.jd.O.fe(),e=olympe.sc.logic.jd.C,f=olympe.sc.logic.jd.D;this.fA(d,g=>{var k=g.ka();if(k=c.Wd(k,e)||c.Wd(k,f))return Fp(g,a,b.bind(null,k))})}sb(a,b){const c=olympe.sc.gg.O.fe();this.fA(c,d=>d.fA(olympe.sc.gg.C,e=>{const f=
|
|
1786
1786
|
e.ka(),g=a.on(Gp(d,f),k=>{b(f,k)});return()=>{g();b(f,null)}}))}};olympe.sc.Runnable.U=Nh(olympe.dc.Ja.C('01130000000000ca1100',olympe.sc.Runnable));olympe.sc.Runnable.ca=olympe.sc.Runnable.U.tb('01692a4af82e8984742b');olympe.sc.Runnable.W=olympe.sc.Runnable.U.tb('01756a18d4921c103111');olympe.sc.Runnable.j3=Y(olympe.sc.Runnable.U,olympe.sc.yc.R);olympe.sc.Runnable.m3=Y(olympe.sc.Runnable.U,olympe.sc.yc.T);olympe.sc.Runnable.p3=Y(olympe.sc.Runnable.U,olympe.sc.yc.ca);Y(olympe.sc.yc.U,olympe.sc.Runnable.ca);
|
|
1787
|
-
Y(olympe.sc.yc.U,olympe.sc.Runnable.W);olympe.sc.Runnable.prototype.
|
|
1787
|
+
Y(olympe.sc.yc.U,olympe.sc.Runnable.W);olympe.sc.Runnable.prototype.kg.K=new olympe.j.J(()=>olympe.sc.yc,[]);olympe.sc.Runnable.prototype.Ea.K=new olympe.j.J(()=>Object,[]);olympe.sc.Runnable.prototype.O.K=olympe.j.J.O;function Hp(a){if(a){if('string'===typeof a)return a;if(a instanceof olympe.sc.ri)return(a=a.D())?a.valueOf():null;if('function'===typeof a.ka)return a.ka()}return null}olympe.sc.ri=class extends olympe.dc.CloudObject{D(){return this.db.pc(this,olympe.sc.ri.C)[0]}C(){const a=Hp(this);return olympe.dc.CloudObject.get(a)}ug(){return this.C().ug()}toString(){const a=Hp(this);let b;a&&(b=this.db.name(a));return b||super.toString()}};olympe.sc.ri.U=olympe.dc.Ja.C('0163c9ae01f2d6e9ca49',olympe.sc.ri);
|
|
1788
1788
|
olympe.sc.ri.C=olympe.sc.ri.U.tb('0169b5a8a33144fb0b49');Y(olympe.dc.CloudObject.U,olympe.sc.ri.C);olympe.sc.ri.prototype.D.K=new olympe.j.J(()=>String,[]);olympe.sc.ri.prototype.C.K=new olympe.j.J(()=>olympe.dc.CloudObject,[]);olympe.sc.uG=class extends olympe.dm.Ye{Di(){return olympe.sc.jf.Yi.Ys}};olympe.sc.uG.U=olympe.dc.Ja.C('0163a68ce44f3d1fa84c',olympe.sc.uG);olympe.sc.qg=class extends olympe.dm.BrickMetadata{};olympe.sc.qg.U=olympe.dc.Ja.C('016324fde11a836f76c2',olympe.sc.qg);olympe.sc.qg.C=olympe.sc.qg.U.tb('016324fde11a836087c2');olympe.sc.qg.U.C=function(a,b){return Gn(a,null!=b?b:'New type',olympe.sc.qg).ka()};let Ip=null,Jp=null,Kp=[];
|
|
1789
1789
|
function Lp(a,b){Ip=a;const c=olympe.j.yb();return olympe.dc.Rh.from(a).oc(olympe.sc.Fb.Pg.C).oc(olympe.sc.On.C.fe()).Kd({Nr:'__code-as-data__'}).then(d=>{let e;null==(e=Kp)||e.forEach(f=>f());Kp=null;Jp=d;if(null!==d){if(b){const f=olympe.dc.eb();return new Promise(g=>{kk(c,d,k=>{k=f.zu(k)?k:f.model(k);return null!==k&&f.me(k,olympe.sc.qg)},{kB:!0}).subscribe(rxjs.Subscriber.create(()=>{g()},()=>{olympe.gb.Cb('sc').error('Impossible to load the business container for the application',a,'maybe are you offline?');
|
|
1790
1790
|
g()}))})}olympe.gb.Cb('sc').debug("Found business container but won't load it's content according to configuration.")}else olympe.gb.Cb('sc').info(`No business container for application ${a}. You probably miss permissions.`);return Promise.resolve()}).catch(d=>{Kp=null;throw d;})}function lh(){return null===Kp?Promise.resolve():new Promise(a=>{Kp.push(()=>a())})}olympe.sc.On=class extends olympe.dc.CloudObject{};olympe.sc.On.U=olympe.dc.Ja.C('017b3aa8fae1e3d044dc',olympe.sc.On);olympe.sc.On.C=olympe.sc.On.U.tb('017b3aa8fd1659291b92');
|
|
@@ -1795,12 +1795,12 @@ olympe.sc.Fg.U.C=(a,b,c,d)=>{c=olympe.sc.File.D(olympe.sc.Fg,a,b,c,d);a.update(c
|
|
|
1795
1795
|
olympe.sc.logic.o0=(a,b,c,d,e,f,g)=>{const k=b.ka();b=olympe.j.Qa(b.getType().ka());let l,m;if(b===olympe.dc.Ya(olympe.dm.String))l=c.valueOf().toLowerCase(),m=p=>p.Rd(k).toLowerCase();else if(b===olympe.dc.Ya(olympe.dm.Number))l=c.valueOf(),m=p=>p.yg(k);else if(b===olympe.dc.Ya(olympe.dm.DateTime))l=c.getTime(),m=p=>olympe.j.Xa([p.gx(k)],r=>r.getTime(),Number,'FilterList Date&DateTime TransformFlows');else{c=olympe.dc.eb().name(b);g.warn(`Properties of type ${c} are not supported. List will not be filtered.`);e(a);
|
|
1796
1796
|
return}let n;if('<'===f)n=(p,r)=>olympe.sc.logic.eH(r,p);else if('>'===f)n=(p,r)=>olympe.sc.logic.eH(p,r);else{g.error(`Unknown inequality ${f}. Please use '<' or '>'`);return}e(a.Mr().filter(p=>olympe.j.Xa([m(p)],r=>{r=n(r.valueOf(),l);return olympe.j.hc(d.valueOf()?1===r:0<=r)},olympe.j.ia,'FilterList ListDefBuilder Filter TransformFlows')).ek())};
|
|
1797
1797
|
olympe.sc.logic.L2=(a,b)=>{if(a instanceof olympe.j.aa)return a;if(a instanceof olympe.j.kb)return a.BP();if(a instanceof olympe.j.ia)return a.LN();if('string'===typeof a||'number'===typeof a)return olympe.j.Ba(Number(a));b.error(`Could not parse provided value ${a} into a number`);return olympe.j.aa.JJ};olympe.sc.logic.Oc={};function Mp(a){Mh(a.U,(b,c)=>{b=b.create(a.U.D);Z(b,olympe.dc.CloudObject.nameProp,c);return b.ka()})}olympe.sc.logic.Oc.UG=class{constructor(a,b,c){this.U=olympe.dc.Ja.C(a,b,...c);Mp(this)}ka(){return this.U.ka()}getInputs(){return wp(olympe.dc.CloudObject.get(this.U))}getOutputs(){return xp(olympe.dc.CloudObject.get(this.U))}};olympe.sc.logic.Oc.UG.Aa=[olympe.dc.Ok];const Np=Object.create(null),Op=new Map;function Pp(a){if(void 0===Np[a])throw Error(`Tag: ${a} - does not correspond to a registered function`);return Ih(a)}function Qp(a,b,c=olympe.sc.logic.Function){if(Op.has(a))throw c=Pp(a),Error(`Tag: ${a} - overwriting existing function definition "${c.name}" with "${b.name}"`);const d=olympe.dc.Ja.C(a,b,...[]);Op.set(a,{U:d,b3:b,G2:c});return d}
|
|
1798
|
-
olympe.sc.logic.Ja=class{constructor(){}static C(a,b,...c){if(Np[a])throw c=Pp(a),Error(`Tag: ${a} - overwriting already defined function "${c.name}" with "${b.name}"`);b=new olympe.sc.logic.Oc.UG(a,b,[olympe.sc.ba.Vb].concat(c));return Np[a]=b}};olympe.sc.logic.gG=class a{static C(b){var c=olympe.sc.ui.Pd.O;let d=!1;const e=olympe.dc.Ya(c),f=olympe.dc.eb();f.pc(b,olympe.sc.
|
|
1798
|
+
olympe.sc.logic.Ja=class{constructor(){}static C(a,b,...c){if(Np[a])throw c=Pp(a),Error(`Tag: ${a} - overwriting already defined function "${c.name}" with "${b.name}"`);b=new olympe.sc.logic.Oc.UG(a,b,[olympe.sc.ba.Vb].concat(c));return Np[a]=b}};olympe.sc.logic.gG=class a{static C(b){var c=olympe.sc.ui.Pd.O;let d=!1;const e=olympe.dc.Ya(c),f=olympe.dc.eb();f.pc(b,olympe.sc.gg.O.fe()).forEach(g=>{d=d||f.pc(g,olympe.sc.gg.C).includes(e)});!1===d&&(d=null!==a.D(c,b));return d}static D(b,c){const d=olympe.sc.logic.jd.O,e=olympe.sc.logic.jd.C,f=olympe.sc.logic.jd.Ks,g=olympe.dc.eb();let k=null;g.pc(c,d.fe()).some(l=>g.Wd(l,e)===b.ka()?(k=g.Wd(l,f)||null,!0):!1);return k}};olympe.sc.logic.Fy=class extends olympe.dc.CloudObject{};olympe.sc.logic.Fy.U=olympe.dc.Ja.C('01621fb84e320000cf00',olympe.sc.logic.Fy);function Xo(a,b,c){return new olympe.sc.logic.Error(a,b,c)}olympe.sc.logic.Error=class extends Error{constructor(a,b,c){super(a);this.code=b;this.C=null!=c?c:null}static create(a,b){return new olympe.sc.logic.Error(a,b)}ZW(){return this.message}eN(){return this.code}tk(){let a;return null!=(a=this.C)?a:''}toString(){return`${this.message}\nError found in:\n${this.tk()}\n\n${this.stack}`}};olympe.sc.logic.Error.prototype.getStack=olympe.sc.logic.Error.prototype.tk;
|
|
1799
1799
|
olympe.sc.logic.Error.prototype.getCode=olympe.sc.logic.Error.prototype.eN;olympe.sc.logic.Error.prototype.getMessage=olympe.sc.logic.Error.prototype.ZW;olympe.sc.logic.Error.create=olympe.sc.logic.Error.create;olympe.sc.logic.Fv=class extends olympe.sc.logic.Fy{};olympe.sc.logic.Fv.U=olympe.dc.Ja.C('016eeb5ede9f3094d8f0',olympe.sc.logic.Fv);olympe.sc.logic.Qh=class extends olympe.dc.CloudObject{C(){return this.Ig(olympe.sc.logic.Qh.C,olympe.dc.CloudObject)}};olympe.sc.logic.Qh.U=olympe.dc.Ja.C('016ac4f59ee8ea2081ba',olympe.sc.logic.Qh);olympe.sc.logic.Qh.D=olympe.sc.logic.Qh.U.fa('017bc044aeacce7ffc8f');olympe.sc.logic.Qh.C=olympe.sc.logic.Qh.U.tb('016ac4f5a0091c4790e2');Y(olympe.dc.CloudObject.U,olympe.sc.logic.Qh.C);olympe.sc.logic.Qh.prototype.C.K=new olympe.j.J(()=>olympe.dc.CloudObject,[]);olympe.sc.logic.Bt=class extends olympe.sc.logic.Qh{};olympe.sc.logic.Bt.U=olympe.dc.Ja.C('016ac4f59c592b862457',olympe.sc.logic.Bt);olympe.sc.logic.Bt.O=olympe.sc.Sh.C.fe();olympe.sc.logic.Bt.U.C=(a,b,c,d,e)=>{b=Gn(a,b||'New Predefined Input',olympe.sc.logic.Bt,olympe.sc.logic.ie);Z(b,olympe.sc.logic.Qh.D,e);a.Qb(olympe.sc.logic.Qh.C,b,c);a.Qb(olympe.sc.Sh.C,d,b);return b.ka()};olympe.sc.logic.rr=class extends olympe.sc.logic.Qh{};olympe.sc.logic.rr.U=olympe.dc.Ja.C('016ac4f59dd99f5df3e1',olympe.sc.logic.rr);olympe.sc.logic.rr.O=Y(olympe.sc.logic.rr.U,olympe.sc.Sh.D);olympe.sc.logic.rr.U.C=(a,b,c,d,e)=>{b=Gn(a,b||'New Predefined Output',olympe.sc.logic.rr,olympe.sc.logic.Le);Z(b,olympe.sc.logic.Qh.D,e);a.Qb(olympe.sc.logic.Qh.C,b,c);a.Qb(olympe.sc.Sh.D,d,b);return b.ka()};olympe.sc.logic.ki=class extends olympe.sc.yc{Di(){return olympe.sc.jf.Yi.QK}R(){return this.Vw().Mr().me([olympe.sc.logic.Function]).and().Re().me([olympe.sc.logic.Mh,olympe.sc.logic.Bh]).ek()}W(){const a=olympe.dc.Ya(olympe.sc.logic.Fv);return this.db.pc(this,olympe.sc.logic.ki.D).filter(b=>this.db.Wd(b,olympe.sc.logic.qf.typeRel)===a)}C(a){const b=this.db.eA(this,[olympe.sc.yc.O],c=>this.db.model(c)===olympe.dc.Ya(a));return b?olympe.dc.CloudObject.get(b):null}D(a){const b=this.db.eA(this,[olympe.sc.yc.D],
|
|
1800
1800
|
c=>this.db.model(c)===olympe.dc.Ya(a));return b?olympe.dc.CloudObject.get(b):null}T(a){if(!this.nq())return super.T(a);const b=olympe.dc.Ya(olympe.sc.logic.Fy),c=olympe.dc.Ya(olympe.sc.logic.Fv);return xp(this).map(d=>{switch(this.db.Wd(d,olympe.sc.logic.qf.typeRel)){case b:return a.Qq.bind(a,d);case c:return a.throw.bind(a);default:return a.set.bind(a,d)}})}O(a){if(!this.nq())return super.O(a);const b=wp(this);return 0<b.length?rxjs.combineLatest(b.map(c=>a.observe(c))).pipe(rxjs.operators.map(c=>
|
|
1801
1801
|
c.includes(null)?null:c)):rxjs.of([])}};olympe.sc.logic.ki.U=Qp('01621fb84e320000f000',olympe.sc.logic.ki,olympe.sc.logic.Function);olympe.sc.logic.ki.prototype.C.K=new olympe.j.J(()=>olympe.sc.logic.ie,[]);olympe.sc.logic.ki.prototype.D.K=new olympe.j.J(()=>olympe.sc.logic.Le,[]);let Rp=null;function Sp(){if(null===Rp){let a;Rp=null!=(a=olympe.sa.getParameter('sc.action.experimental'))?a:!1}return Rp}
|
|
1802
1802
|
olympe.sc.logic.np=class extends olympe.sc.logic.ki{ca(){return this.C('016ac63229782039429f')}da(){return this.D('016ac6322acf67eebfe7')}ma(){return this.getOutputs().Mr().oc(olympe.sc.logic.qf.typeRel).JA(olympe.sc.logic.Fv).ek().Qc().Mj(olympe.j.aa.ZERO)}O(a){if(this.nq()||Sp()){const b=this.ca().ka();return a.observe(b).pipe(rxjs.operators.map(c=>null===c?null:wp(this).filter(d=>d!==b).map(d=>a.get(d))))}return super.O(a)}};olympe.sc.logic.np.C='016ac63229782039429f';olympe.sc.logic.np.$='016ac6322acf67eebfe7';
|
|
1803
|
-
olympe.sc.logic.np.U=Qp('01621fb84e320000a000',olympe.sc.logic.np,olympe.sc.logic.Action);olympe.sc.logic.np.prototype.ca.K=new olympe.j.J(()=>olympe.sc.logic.ie,[]);olympe.sc.logic.np.prototype.da.K=new olympe.j.J(()=>olympe.sc.logic.Le,[]);olympe.sc.logic.np.prototype.ma.K=olympe.j.J.T;olympe.sc.logic.$F=class extends olympe.sc.logic.ki{};olympe.sc.logic.$F.U=Qp('01621fb84e320000f011',olympe.sc.logic.$F);olympe.sc.logic.ZF=class extends olympe.sc.logic.np{};olympe.sc.logic.ZF.U=Qp('01621fb84e320000f012',olympe.sc.logic.ZF);olympe.sc.logic.Function=class extends olympe.sc.Runnable{T(){return[this.ma]}W(){if(!this.
|
|
1803
|
+
olympe.sc.logic.np.U=Qp('01621fb84e320000a000',olympe.sc.logic.np,olympe.sc.logic.Action);olympe.sc.logic.np.prototype.ca.K=new olympe.j.J(()=>olympe.sc.logic.ie,[]);olympe.sc.logic.np.prototype.da.K=new olympe.j.J(()=>olympe.sc.logic.Le,[]);olympe.sc.logic.np.prototype.ma.K=olympe.j.J.T;olympe.sc.logic.$F=class extends olympe.sc.logic.ki{};olympe.sc.logic.$F.U=Qp('01621fb84e320000f011',olympe.sc.logic.$F);olympe.sc.logic.ZF=class extends olympe.sc.logic.np{};olympe.sc.logic.ZF.U=Qp('01621fb84e320000f012',olympe.sc.logic.ZF);olympe.sc.logic.Function=class extends olympe.sc.Runnable{T(){return[this.ma]}W(){if(!this.kg().nq())return super.W();const a=olympe.sc.sp.C.pC,b=olympe.sc.sp.C.OC,c=this.db,d=new Map,e=this.De();c.pc(e,olympe.sc.yc.O).forEach(f=>{d.set(a+c.name(f),f)});c.pc(e,olympe.sc.yc.D).forEach(f=>{d.set(b+c.name(f),f)});return d}};olympe.sc.logic.Function.U=olympe.dc.Ja.C('0168c6f020f2a96f0000',olympe.sc.logic.Function,olympe.sc.ba.Vb);olympe.sc.logic.qf=class extends olympe.dc.CloudObject{getType(){return this.Ig(olympe.sc.logic.qf.typeRel,olympe.dc.CloudObject)}C(){return this.yg(olympe.sc.logic.qf.C)}};olympe.sc.logic.qf.U=olympe.dc.Ja.C('0168a431d25001540000',olympe.sc.logic.qf);olympe.sc.logic.qf.C=olympe.sc.logic.qf.U.fa('01740c5d4ae4b520dd01');olympe.sc.logic.qf.typeRel=olympe.sc.logic.qf.U.tb('0168a431d3b9b7438424');Y(olympe.dc.CloudObject.U,olympe.sc.logic.qf.typeRel);
|
|
1804
1804
|
olympe.sc.logic.qf.prototype.getType.K=new olympe.j.J(()=>olympe.dc.CloudObject,[]);olympe.sc.logic.qf.prototype.C.K=olympe.j.J.D;olympe.sc.logic.ie=class extends olympe.sc.logic.qf{};olympe.sc.logic.ie.U=olympe.dc.Ja.C('0168a431d25001540001',olympe.sc.logic.ie);olympe.sc.logic.ie.W=olympe.sc.logic.qf.U.fa('01740c5d4ae4b520dd02');olympe.sc.logic.ie.T=Y(olympe.sc.logic.ie.U,olympe.sc.yc.O);olympe.sc.logic.ie.D=olympe.sc.logic.ie.U.tb('0168a431d91f2578000b',olympe.dc.Ib.ORIGIN);olympe.sc.logic.ie.O=olympe.sc.logic.ie.U.tb('01621fb84e32000000a1',olympe.dc.Ib.ORIGIN);
|
|
1805
1805
|
olympe.sc.logic.ie.R=olympe.sc.logic.ie.U.tb('01621fb84e32000000d1',olympe.dc.Ib.ORIGIN);olympe.sc.logic.ie.U.C=function(a,b,c,d,e,f=olympe.sc.logic.ie){f=a.create(f);Z(f,olympe.dc.CloudObject.nameProp,b||'New input');a.Qb(olympe.sc.logic.qf.typeRel,f,c);void 0!==e&&Z(f,olympe.sc.logic.qf.C,e);d&&a.Qb(olympe.sc.yc.O,d,f);return f.ka()};olympe.sc.logic.Le=class extends olympe.sc.logic.qf{};olympe.sc.logic.Le.U=olympe.dc.Ja.C('0168a431d25001540002',olympe.sc.logic.Le);olympe.sc.logic.Le.T=Y(olympe.sc.logic.Le.U,olympe.sc.yc.D);olympe.sc.logic.Le.D=olympe.sc.logic.Le.U.tb('0168a431d91f25780003',olympe.dc.Ib.ORIGIN);olympe.sc.logic.Le.R=olympe.sc.logic.Le.U.tb('01621fb84e32000000a2',olympe.dc.Ib.ORIGIN);olympe.sc.logic.Le.O=olympe.sc.logic.Le.U.tb('01621fb84e32000000d2',olympe.dc.Ib.ORIGIN);
|
|
1806
1806
|
olympe.sc.logic.Le.U.C=function(a,b,c,d,e,f=olympe.sc.logic.Le){f=a.create(f);Z(f,olympe.dc.CloudObject.nameProp,b||'New output');a.Qb(olympe.sc.logic.qf.typeRel,f,c);void 0!==e&&Z(f,olympe.sc.logic.qf.C,e);d&&a.Qb(olympe.sc.yc.D,d,f);return f.ka()};olympe.sc.logic.Mh=class extends olympe.sc.logic.Function{run(a){zp(this,a);const b=a.getParent(),c=this.db.Wd(this,olympe.sc.logic.Mh.D),d=this.db.Wd(this,olympe.sc.logic.Mh.C);a.on(c,e=>b.set(d,e),this.tag)}C(){return this.ml(olympe.sc.logic.Mh.D).zf()}D(){return this.ml(olympe.sc.logic.Mh.C).zf()}};olympe.sc.logic.Mh.U=olympe.dc.Ja.C('01621fb84e32000000a0',olympe.sc.logic.Mh,olympe.sc.ba.Vb);olympe.sc.logic.Mh.D=Y(olympe.sc.logic.Mh.U,olympe.sc.logic.ie.O);
|
|
@@ -1810,10 +1810,10 @@ k)}}function Tp(a){let b=null,c=a.db.Wd(a,olympe.sc.logic.jd.C);c?b=a.db.Wd(c,ol
|
|
|
1810
1810
|
olympe.sc.logic.jd=class extends olympe.dc.CloudObject{constructor(a,b,c){super(a,b);this.V=c}C(a,b,c){const d=olympe.sc.Hw(c);null==b||b.xo();b&&d instanceof olympe.dm.$k?null==b||b.run(()=>{olympe.j.Wa([d.getValue()],e=>{a(e.valueOf())})}):a(d)}getValue(a){return this.Go(olympe.sc.logic.jd.valueProp,a||olympe.dc.Ad.Hw,Object)}getType(){const a=this.transform(olympe.sc.logic.jd.D,olympe.sc.logic.qf.typeRel);a.mi(olympe.dc.CloudObject);return a.Vd()}uX(){return this.Ig(olympe.sc.logic.jd.Ks,olympe.dc.CloudObject)}sX(){return this.Ig(olympe.sc.logic.jd.R,
|
|
1811
1811
|
olympe.sc.logic.Le)}tX(){return this.Ig(olympe.sc.logic.jd.gy,olympe.dm.Property)}BW(){return this.Ig(olympe.sc.logic.jd.O,olympe.dc.CloudObject)}zW(){return this.Ig(olympe.sc.logic.jd.D,olympe.sc.logic.ie)}AW(){return this.Ig(olympe.sc.logic.jd.C,olympe.dm.Property)}};olympe.sc.logic.jd.U=olympe.dc.Ja.C('0168a431d91f25780000',olympe.sc.logic.jd,olympe.sc.ba.Vb);olympe.sc.logic.jd.valueProp=olympe.sc.logic.jd.U.fa('0168a431d91f25780001');olympe.sc.logic.jd.Ks=olympe.sc.logic.jd.U.tb('0168a431d91f25780002');
|
|
1812
1812
|
olympe.sc.logic.jd.R=Y(olympe.sc.logic.jd.U,olympe.sc.logic.Le.D);olympe.sc.logic.jd.gy=olympe.sc.logic.jd.U.tb('0168a431d91f25780004');olympe.sc.logic.jd.O=olympe.sc.logic.jd.U.tb('0168a431d91f2578000a');olympe.sc.logic.jd.D=Y(olympe.sc.logic.jd.U,olympe.sc.logic.ie.D);olympe.sc.logic.jd.C=olympe.sc.logic.jd.U.tb('0168a431d91f2578000c');Y(olympe.dc.CloudObject.U,olympe.sc.logic.jd.Ks);Y(olympe.dm.Property.U,olympe.sc.logic.jd.gy);Y(olympe.dc.CloudObject.U,olympe.sc.logic.jd.O);
|
|
1813
|
-
Y(olympe.dm.Property.U,olympe.sc.logic.jd.C);h=olympe.sc.logic.jd.prototype;h.getType.K=new olympe.j.J(()=>olympe.dc.CloudObject,[]);h.uX.K=new olympe.j.J(()=>olympe.dc.CloudObject,[]);h.sX.K=new olympe.j.J(()=>olympe.sc.logic.Le,[]);h.tX.K=new olympe.j.J(()=>olympe.dm.Property,[]);h.BW.K=new olympe.j.J(()=>olympe.dc.CloudObject,[]);h.zW.K=new olympe.j.J(()=>olympe.sc.logic.ie,[]);h.AW.K=new olympe.j.J(()=>olympe.dm.Property,[]);function Up(a,b){const c=a.
|
|
1813
|
+
Y(olympe.dm.Property.U,olympe.sc.logic.jd.C);h=olympe.sc.logic.jd.prototype;h.getType.K=new olympe.j.J(()=>olympe.dc.CloudObject,[]);h.uX.K=new olympe.j.J(()=>olympe.dc.CloudObject,[]);h.sX.K=new olympe.j.J(()=>olympe.sc.logic.Le,[]);h.tX.K=new olympe.j.J(()=>olympe.dm.Property,[]);h.BW.K=new olympe.j.J(()=>olympe.dc.CloudObject,[]);h.zW.K=new olympe.j.J(()=>olympe.sc.logic.ie,[]);h.AW.K=new olympe.j.J(()=>olympe.dm.Property,[]);function Up(a,b){const c=a.kg(),d=c.BC().ka(),e=c.CC().ka(),f=c.DC().ka();b.on(d,g=>{if(g){g=new Map(a.getInputs().map(l=>[l,b.get(l)]));const k={timeout:a.timeout};olympe.Y.de.get(a.De(),g,k).then(l=>{for(const [m,n]of l)m!==e&&m!==f&&b.set(m,n);b.set(e,l.get(e));l=l.get(f);l instanceof olympe.sc.logic.Error&&(l=Xo(l.message,l.code,l.tk()+'\n===== Remote Call =====\n'+b.tk()),b.throw(l))}).catch(l=>{l=`RemoteAction "${a.Qe().name()}" (${a.tag}) encountered an error:\n${l}`;a.V.error(l);b.throw(olympe.sc.logic.Error.create(l,
|
|
1814
1814
|
400))})}},b.ja())}
|
|
1815
1815
|
function Vp(a,b,c,d,e,f){const g=n=>q(function*(){if(null!==n){e.cancel();let p;null==(p=l)||p();let r;null==(r=m)||r();try{const t=new Map(a.getOutputs().map(u=>[u,b.get(u)]));yield f.ai(t)}catch(t){const u=Error(`Error while trying to send the response of remote action ${a.Qe().name()} (${a.De()}): ${t}`);f.gu(u).catch(v=>{a.V.error(`Cannot reply with an error to a remote action call ${a.Qe().name()} (${a.De()}): ${v}`)})}finally{b.destroy()}}}),k=b.ja(),l=b.on(c,g,k),m=b.on(d,g,k)}
|
|
1816
|
-
olympe.sc.logic.It=class extends olympe.sc.logic.Function{constructor(a,b,c,d){super(a,b,c);this.timeout=d}run(a){Uo(a)||(this.db.Ac(this,olympe.sc.logic.It.C)?(kp(a.C,this),this.C(a)):(zp(this,a),Up(this,a)))}C(a){const b=this.De(),c=this.
|
|
1816
|
+
olympe.sc.logic.It=class extends olympe.sc.logic.Function{constructor(a,b,c,d){super(a,b,c);this.timeout=d}run(a){Uo(a)||(this.db.Ac(this,olympe.sc.logic.It.C)?(kp(a.C,this),this.C(a)):(zp(this,a),Up(this,a)))}C(a){const b=this.De(),c=this.kg(),d=c.lJ().ka(),e=c.BC().ka(),f=c.CC().ka(),g=c.DC().ka();(new olympe.Y.de(b,a)).Bu().subscribe(rxjs.Subscriber.create(k=>{const l=a.wo('remote call'),m=k.body(),n=Wc(()=>{k.gu(Error(`Timeout reached on remote action ${this.db.name(this)} (${this.tag})`));l.destroy()},
|
|
1817
1817
|
this.timeout);Vp(this,l,f,g,n,k);super.run(l);for(const [p,r]of m)p!==e&&l.set(p,r);k.qv().then(p=>{var r=l.get(d);null!==r&&olympe.dc.Ya(r)!==p&&(r=this.De(),this.V.warn(`Remote action ${this.db.name(r)} ${r}: try to run it with an input user that is not the real authenticated user.`));l.set(d,p);l.set(e,m.get(e))}).catch(p=>{const r=this.De();this.V.warn(`Remote action ${this.db.name(r)} ${r} Triggered by unrecognized user: ${p}.`);l.set(g,olympe.sc.logic.Error.create('Unrecognized User',1))})},
|
|
1818
1818
|
k=>{const l=this.De();this.V.error(`Error while listening on remote action ${this.db.name(l)} (${l}): ${k.message}`)}))}};olympe.sc.logic.It.U=olympe.dc.Ja.C('017a7b0c5dcbd8964c5d',olympe.sc.logic.It,olympe.sc.ba.Vb,new olympe.sa.zb(olympe.sc.pa.qK));olympe.sc.logic.It.C=olympe.sc.logic.It.U.fa('017a7b0c62a02a89444f');olympe.sc.logic.controllers={};olympe.sc.logic.controllers.qC=class{constructor(a){this.db=olympe.dc.eb();this.typeRel=a}};olympe.sc.logic.controllers.qC.C={$Z:-1,g0:1};olympe.sc.logic.controllers.b1=class extends olympe.sc.logic.controllers.qC{constructor(){super(olympe.sc.logic.Qh.C)}};olympe.sc.logic.controllers.i1=class extends olympe.sc.logic.controllers.qC{constructor(){super(olympe.sc.logic.qf.typeRel)}};olympe.sc.logic.gA={};olympe.sc.logic.gA.wU=class extends olympe.sc.logic.Function{update(a,[b],[c]){const d=olympe.dc.Ya(b);d?olympe.dc.nb.af(a,d,olympe.dc.Te.Wi).subscribe(()=>{c(olympe.dc.CloudObject.get(d))}):this.V.warn('Cannot subscribe to an instance with no tag: '+d)}};olympe.sc.logic.Ja.C('0174bf4b7e006e4b788a',olympe.sc.logic.gA.wU);olympe.sc.logic.actions={};olympe.sc.logic.gA.OS=class extends olympe.sc.logic.Function{run(a){zp(this,a);const [b,c,d]=Dp(this,a);let e,f=null,g=null;const k=a.getParent(),l=()=>{null===g||0===e?(this.V.warn('No list to iter upon'),this.V.info(a.ja())):f<e?(b(g.ql(f)),f++,c(Date.now())):(mp(k.C),d(Date.now()))};this.getInputs().forEach((m,n)=>a.on(m,p=>{if(p)switch(n){case 0:g=p;break;case 1:e=g.aj();f=0;lp(k.C);l();break;case 2:l();break;default:this.V.error('Unhandled input')}},this.tag))}};
|
|
1819
1819
|
olympe.sc.logic.Ja.C('0171889b060b6cd54300',olympe.sc.logic.gA.OS);olympe.sc.logic.ff={};olympe.sc.logic.ff.YB=class extends olympe.sc.logic.ki{ca(){return this.C('016ac638085357047a2d')}};olympe.sc.logic.ff.YB.U=Qp('0169b6876a03f14ae61b',olympe.sc.logic.ff.YB);olympe.sc.logic.ff.YB.prototype.ca.K=new olympe.j.J(()=>olympe.sc.logic.ie,[]);let Wp=null;olympe.sc.logic.ff.rC=class extends olympe.sc.logic.ki{ca(){return this.C('016ac63808535703691c')}O(a){if(null===Wp){let b;Wp=null!=(b=olympe.sa.getParameter('sc.event.experimental'))?b:!1}return Wp?a.observe(wp(this)[0]):super.O(a)}};olympe.sc.logic.ff.rC.U=Qp('0169b6876a03f139d50a',olympe.sc.logic.ff.rC);olympe.sc.logic.ff.rC.prototype.ca.K=new olympe.j.J(()=>olympe.sc.logic.ie,[]);olympe.sc.logic.ff.PC=class extends olympe.sc.logic.ki{ca(){return this.C('016ac63809a9a8e6db96')}da(){return this.D('016ac6380ab003363b3e')}};Qp('01646ad602f933b8caaf',olympe.sc.logic.ff.PC);olympe.sc.logic.ff.PC.prototype.ca.K=new olympe.j.J(()=>olympe.sc.logic.ie,[]);olympe.sc.logic.ff.PC.prototype.da.K=new olympe.j.J(()=>olympe.sc.logic.Le,[]);olympe.sc.logic.ff.pz=class extends olympe.sc.logic.ki{ca(){return this.C('016ac6380bd98f1d91a0')}ma(){return this.D('016ac63c589ae38ca3ae')}da(){return this.D('016ac63c5a377fceabaa')}};Qp('0168ec42fc01747a98b6',olympe.sc.logic.ff.pz);olympe.sc.logic.ff.pz.prototype.ca.K=new olympe.j.J(()=>olympe.sc.logic.ie,[]);olympe.sc.logic.ff.pz.prototype.ma.K=new olympe.j.J(()=>olympe.sc.logic.Le,[]);olympe.sc.logic.ff.pz.prototype.da.K=new olympe.j.J(()=>olympe.sc.logic.Le,[]);olympe.sc.logic.ff.ur=class extends olympe.sc.logic.ki{BC(){return this.C('017a7b07b09e3b22c8b4')}lJ(){return this.C('017a7b07ba05807a74b0')}CC(){return this.D('017a7b0818c12388d731')}DC(){return this.D('017a7b085146d5e69aec')}qS(){return olympe.j.ia.C}};olympe.sc.logic.ff.ur.$='017a7b07b09e3b22c8b4';olympe.sc.logic.ff.ur.Pa='017a7b07ba05807a74b0';olympe.sc.logic.ff.ur.za='017a7b0818c12388d731';olympe.sc.logic.ff.ur.C='017a7b085146d5e69aec';
|
|
@@ -1825,56 +1825,56 @@ olympe.sc.workflow.Transition.prototype.C.K=new olympe.j.J(()=>olympe.sc.workflo
|
|
|
1825
1825
|
olympe.sc.workflow.Workflow.dataTypeRel=olympe.sc.workflow.Workflow.U.tb('017ffdc010e5bcc9c973');olympe.sc.workflow.Workflow.statesRel=olympe.sc.workflow.Workflow.U.tb('017ffdc010e5bcc9c974');olympe.sc.workflow.Workflow.initialStateRel=olympe.sc.workflow.Workflow.U.tb('017ffdc010e5bcc9c975');olympe.sc.workflow.Workflow.prototype.O.K=olympe.j.J.T;olympe.sc.workflow.Workflow.prototype.C.K=new olympe.j.J(()=>olympe.sc.qg,[]);
|
|
1826
1826
|
olympe.sc.workflow.Workflow.prototype.D.K=new olympe.j.J(()=>olympe.sc.workflow.wm,[]);olympe.sc.Fb={};olympe.sc.Fb.Pg=class extends olympe.sc.yc{Di(){return olympe.sc.jf.Yi.HK}};olympe.sc.Fb.Pg.U=olympe.dc.Ja.C('01120300000000adef00',olympe.sc.Fb.Pg);olympe.sc.Fb.Pg.C=olympe.sc.Fb.Pg.U.tb('0171bc1f15da96dfdb89');olympe.sc.Fb.Pg.Pa=olympe.sc.Fb.Pg.U.tb('0171bc1f15da96dfdb90');Y(olympe.dm.fh.U,olympe.sc.Fb.Pg.C);olympe.sc.Fb.Ss=class extends olympe.sc.Runnable{da(){return[this.De()]}za(){return olympe.dc.Rh.from(this.De()).oc(olympe.sc.Fb.Pg.C).zf()}};olympe.sc.Fb.Ss.U=Nh(olympe.dc.Ja.C('0113030000000aca1100',olympe.sc.Fb.Ss));olympe.sc.Fb.Ss.prototype.za.K=new olympe.j.J(()=>olympe.dm.fd,[]);olympe.sc.Fb.Fd=class extends olympe.dc.CloudObject{xS(){return this.Vm(olympe.sc.Fb.Fd.Yt)}aY(){return this.Vm(olympe.sc.Fb.Fd.ma)}jh(){return this.yg(olympe.sc.Fb.Fd.C)}HW(){return this.Rd(olympe.sc.Fb.Fd.R)}kX(){return this.Rd(olympe.sc.Fb.Fd.da)}jX(){return this.Rd(olympe.sc.Fb.Fd.$)}yo(){return this.Rd(olympe.sc.Fb.Fd.ca)}YW(){return this.Rd(olympe.sc.Fb.Fd.T)}hW(){return this.Rd(olympe.sc.Fb.Fd.D)}hX(){return this.Rd(olympe.sc.Fb.Fd.W)}wS(){return this.Rd(olympe.sc.Fb.Fd.O)}};
|
|
1827
1827
|
olympe.sc.Fb.Fd.U=olympe.dc.Ja.C('011203300000000adef5',olympe.sc.Fb.Fd);olympe.sc.Fb.Fd.Yt=olympe.sc.Fb.Fd.U.fa('011203300000000adef6');olympe.sc.Fb.Fd.ma=olympe.sc.Fb.Fd.U.fa('011203300000000adef7');olympe.sc.Fb.Fd.C=olympe.sc.Fb.Fd.U.fa('011203300000000adef8');olympe.sc.Fb.Fd.R=olympe.sc.Fb.Fd.U.fa('011203300000000adef9');olympe.sc.Fb.Fd.da=olympe.sc.Fb.Fd.U.fa('011203300000000adefa');olympe.sc.Fb.Fd.$=olympe.sc.Fb.Fd.U.fa('011203300000000adefb');olympe.sc.Fb.Fd.D=olympe.sc.Fb.Fd.U.fa('011203300000000adefc');
|
|
1828
|
-
olympe.sc.Fb.Fd.ca=olympe.sc.Fb.Fd.U.fa('011203300000000adefd');olympe.sc.Fb.Fd.T=olympe.sc.Fb.Fd.U.fa('011203300000000adefe');olympe.sc.Fb.Fd.W=olympe.sc.Fb.Fd.U.fa('011203300000000adeff');olympe.sc.Fb.Fd.O=olympe.sc.Fb.Fd.U.fa('011203300000000adee0');olympe.sc.Fb.Fd.Vf={INIT:0,MZ:1,v1:2,q1:3,p1:4,w1:5,
|
|
1829
|
-
h.hW.K=olympe.j.J.R;h.hX.K=olympe.j.J.R;h.wS.K=olympe.j.J.R;olympe.sc.Fb.nC=class extends olympe.sc.Fb.Ss{
|
|
1828
|
+
olympe.sc.Fb.Fd.ca=olympe.sc.Fb.Fd.U.fa('011203300000000adefd');olympe.sc.Fb.Fd.T=olympe.sc.Fb.Fd.U.fa('011203300000000adefe');olympe.sc.Fb.Fd.W=olympe.sc.Fb.Fd.U.fa('011203300000000adeff');olympe.sc.Fb.Fd.O=olympe.sc.Fb.Fd.U.fa('011203300000000adee0');olympe.sc.Fb.Fd.Vf={INIT:0,MZ:1,v1:2,q1:3,p1:4,w1:5,we:9};h=olympe.sc.Fb.Fd.prototype;h.xS.K=olympe.j.J.T;h.aY.K=olympe.j.J.T;h.jh.K=olympe.j.J.D;h.HW.K=olympe.j.J.R;h.kX.K=olympe.j.J.R;h.jX.K=olympe.j.J.R;h.yo.K=olympe.j.J.R;h.YW.K=olympe.j.J.R;
|
|
1829
|
+
h.hW.K=olympe.j.J.R;h.hX.K=olympe.j.J.R;h.wS.K=olympe.j.J.R;olympe.sc.Fb.nC=class extends olympe.sc.Fb.Ss{ue(a){a.set(olympe.sc.Hb.C.wB,!0);super.ue(a)}Ha(){return!0}};olympe.sc.Fb.nC.U=olympe.dc.Ja.C('0113032000000aca1102',olympe.sc.Fb.nC,olympe.sc.ba.Vb);olympe.sc.Fb.vm=class extends olympe.sc.Fb.Pg{C(){return(new olympe.dc.Mp(this.ka(),olympe.sc.Fb.Fd)).oc(olympe.sc.Fb.vm.$).ek().Vd()}};olympe.sc.Fb.vm.U=olympe.dc.Ja.C('011203300000000adef3',olympe.sc.Fb.vm);olympe.sc.Fb.vm.$=olympe.sc.Fb.vm.U.tb('011203300000000adef4');Y(olympe.sc.Fb.Fd.U,olympe.sc.Fb.vm.$);
|
|
1830
1830
|
olympe.sc.Fb.vm.U.C=(a,b,c)=>{b=Gn(a,b||'New Service Application model',olympe.sc.Fb.vm,olympe.sc.Fb.nC);a.Qb(olympe.sc.Fb.Pg.C,b,c);c=a.create(olympe.sc.Fb.Fd).ka();a.Qb(olympe.sc.Fb.vm.$,b,c);return b.ka()};olympe.sc.Fb.vm.prototype.C.K=new olympe.j.J(()=>olympe.sc.Fb.Fd,[]);olympe.sc.Dr=class extends olympe.dc.CloudObject{static get(){return olympe.dc.CloudObject.get('011203300000000adf0f')}};olympe.sc.Dr.U=olympe.dc.Ja.C('011203300000000adf00',olympe.sc.Dr);olympe.sc.Dr.D=olympe.sc.Dr.U.fa('011203300000000adf01');olympe.sc.Dr.C=olympe.sc.Dr.U.fa('011203300000000adf02');olympe.sc.Dr.O='011203300000000adf0f';olympe.sc.Pq={};olympe.sc.Pq.RX=a=>{var b=a.C;const c=olympe.dc.eb();var d=null;var e=null===Kp;for(const f of b.xg())if((b=f.Qe())&&f.O()&&f.Sd()===olympe.dc.Jc.SERVER&&un(a,f.tag())&&c.me(b,olympe.sc.qg)){if(!e)throw new olympe.dc.PJ;let g,k;null==d&&(d=null,null!==Jp?d=Jp:'string'===typeof Ip&&(d=olympe.dc.Rh.from(Ip).oc(olympe.sc.Fb.Pg.C).oc(olympe.sc.On.C.fe()).zf()),d=null==(g=d)?void 0:g.ka());d=null!=(k=d)?k:null;if(null===d)throw Error(`No business container for new instance of ${olympe.dc.Ya(b)}`);a.Qb(olympe.sc.On.D.ka(),
|
|
1831
1831
|
d,f.tag())}};
|
|
1832
1832
|
olympe.sc.Pq.cY=a=>{const b=a.C,c=olympe.dc.eb();for(const d of b.xg()){const e=d.Qe();e&&!d.$h()&&c.me(e,olympe.sc.qg)&&d.be().forEach((f,g)=>{if(f instanceof olympe.dc.Kf){const m=b.ih(f.ka());if(null===m)throw Error(`Try to assign an instance as complex property which is not created within the same transaction: ${f.ka()}`);var k;f=null!=(k=null==m?void 0:m.Qe())?k:null;k=m.tag();let n;if(f===olympe.dc.Ya(olympe.sc.ri)){k=m.Wd(olympe.sc.ri.C);if(!k)throw Error('No object reference found for new ObjectRef');var l;
|
|
1833
1833
|
let p;f=null!=(p=null==(l=b.ih(k))?void 0:l.Qe())?p:c.model(k)}if(c.Xm(f,olympe.dm.$k)){l=Qo(f);let p;n=null!=(p=m.Ac(l.ka()))?p:c.Ac(k,l)}if(void 0===n)throw Error(`Try to set a complex property to an instance of a DataType: ${c.name(e)} (${e})`);a.oh(d.tag(),new Map([[g,n]]));zn(a,m.tag(),olympe.dc.Te.Qg)}})}};
|
|
1834
1834
|
olympe.sc.Pq.DV=a=>{const b=a.C,c=olympe.dc.eb(),d=new Set;for(var e of b.je.values()){a=e.tag();let f;const g=null!=(f=e.Qe())?f:c.model(a);if(null!==g&&e.kc()&&(d.has(g)||c.me(g,olympe.sc.qg))){d.add(g);const k=Array.from(e.Ha()).flatMap(([l,,m,n])=>n&&l!==olympe.dc.Lf.sh?[m]:[]).find(l=>{let m,n;const p=null!=(n=null==(m=b.ih(l))?void 0:m.Qe())?n:c.model(l);return!p||!(d.has(p)||c.me(p,olympe.sc.qg))});if(void 0!==k){let l,m,n;e=null!=(n=null!=(m=null==(l=b.ih(k))?void 0:l.Qe())?m:c.model(k))?
|
|
1835
1835
|
n:'unknown';throw Error(`Try to link an instance (${a}) of DataType ${c.name(g)} (${g}) to an instance which is not (${k}) a DataType: ${c.name(e)} (${e})`);}}}};olympe.sc.Pq.qY=a=>{var b=a.C;const c=olympe.dc.eb();for(const d of b.xg()){b=d.tag();const e=d.Qe();if(e&&!c.me(e,olympe.sc.qg)&&un(a,b))throw Error(`You are trying to persist an instance of : ${c.name(e)} (${e}), but only instances of DataType can be persisted`);}};
|
|
1836
|
-
olympe.sa.run([olympe.dc.transaction.ba.Ob],a=>{Mn(Mn(Mn(a,olympe.sc.Pq.DV,'businessDataRelations'),olympe.sc.Pq.RX,'linkBusinessContainer'),olympe.sc.Pq.cY,'noBusinessComplexProperty')});olympe.sc.Dy=class extends olympe.dm.BrickMetadata{Di(){return olympe.sc.jf.Yi.Ys}};olympe.sc.Dy.U=olympe.dc.Ja.C('01645fe6873aeea59e64',olympe.sc.Dy);olympe.sc.Dy.C=olympe.sc.Dy.U.tb('017ed8ac775f48d4d589');olympe.sc.aG=class extends olympe.dm.Ye{Di(){return olympe.sc.jf.Yi.Ys}};olympe.sc.aG.U=olympe.dc.Ja.C('0163a68ce44f3d1fa95d',olympe.sc.aG);olympe.sc.Ws=class extends olympe.dm.BrickMetadata{};olympe.sc.Ws.U=olympe.dc.Ja.C('016324fde11a836f77d3',olympe.sc.Ws);olympe.sc.Ws.C=olympe.sc.qg.U.tb('016324fde11a836088d3');olympe.sc.Ws.U.C=(a,b)=>Gn(a,null!=b?b:'New config type',olympe.sc.Ws).ka();olympe.sc.XZ=class{};olympe.sc.Ky=class extends olympe.dm.BrickMetadata{Di(){return olympe.sc.jf.Yi.Ys}};olympe.sc.Ky.U=olympe.dc.Ja.C('017dc8d6c8fd8c8bd2ff',olympe.sc.Ky);olympe.sc.Ky.U.C=(a,b)=>Gn(a,null!=b?b:'New data connector',olympe.sc.Ky,olympe.dm.DataSource).ka();function Gp(a,b){return`delegated^${olympe.dc.Ya(a)}^${olympe.dc.Ya(b)}`}olympe.sc.
|
|
1837
|
-
olympe.sc.
|
|
1836
|
+
olympe.sa.run([olympe.dc.transaction.ba.Ob],a=>{Mn(Mn(Mn(a,olympe.sc.Pq.DV,'businessDataRelations'),olympe.sc.Pq.RX,'linkBusinessContainer'),olympe.sc.Pq.cY,'noBusinessComplexProperty')});olympe.sc.Dy=class extends olympe.dm.BrickMetadata{Di(){return olympe.sc.jf.Yi.Ys}};olympe.sc.Dy.U=olympe.dc.Ja.C('01645fe6873aeea59e64',olympe.sc.Dy);olympe.sc.Dy.C=olympe.sc.Dy.U.tb('017ed8ac775f48d4d589');olympe.sc.aG=class extends olympe.dm.Ye{Di(){return olympe.sc.jf.Yi.Ys}};olympe.sc.aG.U=olympe.dc.Ja.C('0163a68ce44f3d1fa95d',olympe.sc.aG);olympe.sc.Ws=class extends olympe.dm.BrickMetadata{};olympe.sc.Ws.U=olympe.dc.Ja.C('016324fde11a836f77d3',olympe.sc.Ws);olympe.sc.Ws.C=olympe.sc.qg.U.tb('016324fde11a836088d3');olympe.sc.Ws.U.C=(a,b)=>Gn(a,null!=b?b:'New config type',olympe.sc.Ws).ka();olympe.sc.XZ=class{};olympe.sc.Ky=class extends olympe.dm.BrickMetadata{Di(){return olympe.sc.jf.Yi.Ys}};olympe.sc.Ky.U=olympe.dc.Ja.C('017dc8d6c8fd8c8bd2ff',olympe.sc.Ky);olympe.sc.Ky.U.C=(a,b)=>Gn(a,null!=b?b:'New data connector',olympe.sc.Ky,olympe.dm.DataSource).ka();function Gp(a,b){return`delegated^${olympe.dc.Ya(a)}^${olympe.dc.Ya(b)}`}olympe.sc.gg=class extends olympe.sc.Runnable{Pa(){return this.pc(olympe.sc.gg.O,olympe.sc.Runnable)}za(){return this.pc(olympe.sc.gg.C,olympe.dm.Property)}};olympe.sc.gg.U=Nh(olympe.dc.Ja.C('016c2d996d9ca27fa9d8',olympe.sc.gg));olympe.sc.gg.O=olympe.sc.gg.U.tb('016c3cb7742ec9309e0b');olympe.sc.gg.C=olympe.sc.gg.U.tb('016c42d3454636f90533');olympe.sc.gg.prototype.Pa.K=new olympe.j.J(()=>olympe.dc.Kb,[]);
|
|
1837
|
+
olympe.sc.gg.prototype.za.K=new olympe.j.J(()=>olympe.dc.Kb,[]);olympe.sc.HG=class extends olympe.dm.Ye{Di(){return olympe.sc.jf.Yi.Ys}};olympe.sc.HG.U=olympe.dc.Ja.C('017a7a9ff057958e5678',olympe.sc.HG);olympe.sc.Ev=class extends olympe.dm.Enum{static create(a,b,c,d,e){const f=olympe.dc.eb();e=void 0!==e?e:f.tc(b)&&f.xg(b).length||0;c=(new Map).set(olympe.dm.String.valueProp,c).set(olympe.dc.CloudObject.nameProp,d||c).set(olympe.dm.Enum.rankProp,e);return a.create(b,c)}};olympe.sc.Ev.create=olympe.sc.Ev.create;olympe.sc.Ev.U=olympe.dc.Ja.C('016cdd861b32d56c8208',olympe.sc.Ev);olympe.sc.GJ=class extends olympe.dm.Ye{Di(){return olympe.sc.jf.Yi.oD}};olympe.sc.GJ.U=olympe.dc.Ja.C('01644b6d4543b344b857',olympe.sc.GJ);olympe.sc.HJ=class extends olympe.dc.CloudObject{};olympe.sc.HJ.U=olympe.dc.Ja.C('0162f672366be5ca7a86',olympe.sc.HJ);const Xp={FG:30};olympe.sc.Mf=class extends olympe.dc.sources.Mf{D(a){return a instanceof olympe.sc.logic.Error?Ge(Xp.FG,{c:a.code,m:a.message,s:a.tk()}):super.D(a)}C(a){return(null==a?void 0:a.t)===Xp.FG?(a=a.v,Xo(a.m,a.c,a.s)):super.C(a)}R(a){super.R(a);if(this.db.model(a)===olympe.sc.ri.U.ka()){const b=olympe.sc.ri.C;this.O.get(a).r.push({r:b.ka(),o:a,d:this.db.Wd(a,b)})}return a}};function Yp(a,b,c,d){const e=Gp(a,c);olympe.j.Wa([d],f=>{b.set(e,f)});olympe.j.yb().Ve(()=>{b.remove(e)})}olympe.sc.Br=class extends olympe.sc.gg{};olympe.sc.Br.U=olympe.dc.Ja.C('016d3f37610ae4fc3962',olympe.sc.Br);olympe.sc.Text=class extends olympe.dm.String{};olympe.sc.Text.U=olympe.dc.Ja.C('016cfca73e63f9ab5ba4',olympe.sc.Text);olympe.sc.Tc=class{constructor(a=!0){a=Dn(a);a.T=!0;var b=olympe.sc.Pq.qY;let c;(null==(c=olympe.sa.getParameter(olympe.dc.transaction.pa.UB))?0:c.includes('persistenceBusinessDataOnly'))||a.W.push(b);this.C=a;this.D=[];this.source=null}static from(a){const b=olympe.sc.Hb.C.TRANSACTION;return a.has(b,!0)?a.get(b,!0):new olympe.sc.Tc}static process(a,b){return a.has(olympe.sc.Hb.C.TRANSACTION,!0)?Promise.resolve(!1):b.Kd().then(()=>!0)}ja(){return this.C.ja()}create(a,b=new Map,c=this.source,d){c=
|
|
1838
1838
|
'string'===typeof c?c:olympe.dc.Kj().fromModel(a);a=this.C.create(a,d).ne(c);for(const [e,f]of b)Z(a,e,f);b=a.ka();this.D.push(b);return b}update(a,b,c){this.C.update(a,b,c);return this}HO(a,b){a=this.C.update(a);for(const [c,d]of b)b=d,a.Ji.set(olympe.dc.Ya(c),b);return this}delete(a){this.C.delete(a);return this}Qb(a,b,c){this.C.Qb(a,b,c);return this}Xf(a,b,c){this.C.Xf(a,b,c);return this}JD(a,b){this.C.JD(a,b);return this}persist(a,b=!0){this.C.persist(a,b);return this}pY(a,b=!0){olympe.gb.Cb('dc').warn('Transaction#persistInstance() has been deprecated. Please use Transaction#persist() instead.');
|
|
1839
1839
|
return this.persist(a,b)}ne(a){this.source=a;return this}model(a){return this.C.model(a)}merge(a){En(this.C,a.C);return this}AD(a){this.C.AD(a);return this}Kd(){return new Promise((a,b)=>{this.C.Kd((c,d)=>{c?a(new olympe.sc.sw(this.D)):b(d)})})}KD(){return new Promise((a,b)=>{this.C.KD((c,d)=>{c?a(new olympe.sc.sw(this.D)):b(d)})})}};olympe.sc.Tc.prototype.executeAsLarge=olympe.sc.Tc.prototype.KD;olympe.sc.Tc.prototype.execute=olympe.sc.Tc.prototype.Kd;olympe.sc.Tc.prototype.afterExecution=olympe.sc.Tc.prototype.AD;
|
|
1840
1840
|
olympe.sc.Tc.prototype.merge=olympe.sc.Tc.prototype.merge;olympe.sc.Tc.prototype.model=olympe.sc.Tc.prototype.model;olympe.sc.Tc.prototype.setSource=olympe.sc.Tc.prototype.ne;olympe.sc.Tc.prototype.persistInstance=olympe.sc.Tc.prototype.pY;olympe.sc.Tc.prototype.persist=olympe.sc.Tc.prototype.persist;olympe.sc.Tc.prototype.deleteAllRelations=olympe.sc.Tc.prototype.JD;olympe.sc.Tc.prototype.deleteRelation=olympe.sc.Tc.prototype.Xf;olympe.sc.Tc.prototype.createRelation=olympe.sc.Tc.prototype.Qb;
|
|
1841
1841
|
olympe.sc.Tc.prototype['delete']=olympe.sc.Tc.prototype.delete;olympe.sc.Tc.prototype.multiUpdate=olympe.sc.Tc.prototype.HO;olympe.sc.Tc.prototype.update=olympe.sc.Tc.prototype.update;olympe.sc.Tc.prototype.create=olympe.sc.Tc.prototype.create;olympe.sc.Tc.prototype.getId=olympe.sc.Tc.prototype.ja;olympe.sc.Tc.process=olympe.sc.Tc.process;olympe.sc.Tc.from=olympe.sc.Tc.from;olympe.sc.sw=class{constructor(a){this.C=a}tW(){return this.C.map(olympe.dc.CloudObject.get)}};olympe.sc.sw.prototype.getCreatedObjects=olympe.sc.sw.prototype.tW;olympe.Af={};olympe.Af.uF=class{run(){}};function Zp(a,b='default'){return a.C===b}
|
|
1842
1842
|
olympe.Af.Cc=class{constructor(a,b){this.C=a;this.V=b;this.D=null;this.O='';this.V.info('HC Manager will execute application registered as:',this.C)}Jq(a,b,c=''){b||(b='default');b===this.C?(null===this.D?this.V.log('Application',c,'designated to be launched'):this.V.log('OVERRIDE: Application',c,'designated to be launched'),this.D=a,this.O=c):this.V.debug('ignoring application:'+c+' as it is registered under name '+b+' and not '+this.C)}run(){null!==this.D?(this.V.info('Running application:',this.O),
|
|
1843
|
-
this.D.run()):this.V.error('No app registered under name: '+this.C)}};olympe.Af.Jq=function(a,b,c='default'){const d=a.Cb();c?d.debug('Pre-registering application '+b+' under name '+c+' (use '+olympe.Af.pa.Zl+'='+c+' to start it)'):d.debug('Pre-registering application '+b+' as default one');a.
|
|
1844
|
-
olympe.sa.run([olympe.Af.ba.Ob],a=>a.run(),'olympe.hc');olympe.sc.
|
|
1843
|
+
this.D.run()):this.V.error('No app registered under name: '+this.C)}};olympe.Af.Jq=function(a,b,c='default'){const d=a.Cb();c?d.debug('Pre-registering application '+b+' under name '+c+' (use '+olympe.Af.pa.Zl+'='+c+' to start it)'):d.debug('Pre-registering application '+b+' as default one');a.kg(olympe.Af.ba.Ob).$e(c,[b],(e,f)=>f.Jq(e,c,b),e=>Zp(e,c),'olympe.hc.registerApp')};olympe.Af.ba={Ob:'hc.Manager',Vb:'hc.Logger'};olympe.Af.pa={Zl:'hc.app',aH:'hc.globalToken'};olympe.sa.$e(function(a){E(a,olympe.Af.pa.Zl,'default');E(a,olympe.Af.pa.aH,!1);C(a,olympe.Af.ba.Vb,[olympe.gb.ba.Ob],b=>b.Vg('hc'));C(a,olympe.Bc.ba.Ar,[new olympe.sa.zb(olympe.Af.pa.Zl)],b=>b);C(a,olympe.xa.ba.vB,[olympe.Bc.ba.Ar,new olympe.sa.zb(olympe.Af.pa.aH)],(b,c)=>new olympe.xa.vF(c?'':b));B(a,olympe.Af.ba.Ob,olympe.Af.Cc,new olympe.sa.zb(olympe.Af.pa.Zl),olympe.Af.ba.Vb)},'olympe.hc');
|
|
1844
|
+
olympe.sa.run([olympe.Af.ba.Ob],a=>a.run(),'olympe.hc');olympe.sc.ve={};function $p(a){if(a.Ha)return a.V.debug('Sending getContext request'),xk(a.Ka).then(()=>{a.V.debug('synchronisation request successful');var f=a.C;Kp=null;Ip=f}).catch(f=>{a.V.error('failed to synchronise (authenticated) with server: '+f.message)});const b=Vo(a.D);!b&&Mm();a.V.debug((b?'PULLING':'SUBSCRIBING')+' application '+a.C);const c=a.D.se(),d=new Promise((f,g)=>{const k=olympe.dc.eb(),l=new olympe.j.ee('Primordial Subscription Context',c);kk(l,a.C,m=>{m=k.zu(m)?m:k.model(m);return null!==m&&
|
|
1845
1845
|
k.me(m,olympe.sc.Ws)},{Xg:aq(b),kB:!0,DO:!0}).subscribe(rxjs.Subscriber.create(c.re(()=>{k.me(a.C,olympe.sc.Fb.Pg)?(a.Oa.$(a.C,b),f()):xd(a.O)?g(Error(`The specified application tag (${a.C}) is not an application or does not exist`)):(l.destroy(),a.O.connect().catch(m=>{g(Error(`Failed to load the app while offline, you might want to try again when online: ${m}`))}))}),m=>g(m)))}),e=new Promise(f=>{olympe.j.Wa([a.T.wk()],g=>{const k=aq(b,!1);olympe.dc.nb.Em(g,olympe.dm.User,olympe.dc.Jc.SERVER).observe(c,
|
|
1846
1846
|
{Xg:k,$z:'__code-as-data__'}).subscribe(()=>f())})});return Promise.all([d,e]).then(()=>{if(a.Pa)return bq(a);bq(a).then(()=>{})})}
|
|
1847
|
-
function cq(a){a.V.info('Starting application '+a.C);const b=olympe.dc.eb();if(0<a.C.length){const c=qh(b,a.C,a.D.
|
|
1847
|
+
function cq(a){a.V.info('Starting application '+a.C);const b=olympe.dc.eb();if(0<a.C.length){const c=qh(b,a.C,a.D.se().re((f,g)=>{if(f)if(f=yp(g),f instanceof olympe.sc.Fb.Ss){a.V.debug('application retrieved: running');g=Ro(a.D,f);const k=new olympe.sc.$c.ET(a.W);mb(a.W,()=>ep(a.D.C,k));nb(a.W,()=>{var l=k.ja();return gp(a.D.C,l)});a.xb&&a.W.start();f.run(g);'string'===typeof a.Eb&&(new olympe.sc.uj).da(f.ka(),g,a.V);g.qB(olympe.sc.Hb.C.wB).then(()=>{let l;null==(l=d)||l.cancel();a.ob.update(olympe.j.ia.C);
|
|
1848
1848
|
a.ca()})}else a.V.error('application retrieved: not an Application with a run() method');else dq(a)}));olympe.j.yb().onDestroy(()=>{nh(b,a.C,c)});const d=Wc(()=>{a.V.warn(`requested application ${a.C} may not be available (it may not exist or the logged user may not have the correct permissions)`)},3E4);let e;null==(e=a.qc)||e.start()}}function aq(a,b=!0){return a?olympe.dc.nb.Jf.Qp:b?olympe.dc.nb.Jf.cm:olympe.dc.nb.Jf.vz}
|
|
1849
|
-
function bq(a){return q(function*(){eq(a.C)&&(yield Lp(a.C,a.Pa).catch(b=>{throw Error(`Failed to load the business container for the application ${a.C}: ${b}`);}))})}function dq(a){a.V.info('Stop the application');a.D.
|
|
1850
|
-
olympe.sc.
|
|
1849
|
+
function bq(a){return q(function*(){eq(a.C)&&(yield Lp(a.C,a.Pa).catch(b=>{throw Error(`Failed to load the business container for the application ${a.C}: ${b}`);}))})}function dq(a){a.V.info('Stop the application');a.D.se().xo()}
|
|
1850
|
+
olympe.sc.ve.xr=class{constructor(a,b,c,d,e,f,g,k,l,m){this.V=a;this.T=b;this.O=c;this.Ka=d;this.D=f;this.Oa=g;this.W=k;this.qc=m;this.C=l.get('appTag');this.Ha=l.get('getContextMode');let n;this.Eb=null!=(n=l.get('debuggerName'))?n:null;this.xb=l.get('autostartProfiler');this.Pa=l.get('requireBusinessContainer');this.ob=olympe.j.Za(olympe.j.ia).update(olympe.j.ia.pb)}run(){this.V.debug('runtime starting for app #'+this.C);let a=!1;const b=olympe.Y.mf.C.nr,c=olympe.Y.mf.C.jk,d=olympe.Y.mf.C.hi;olympe.j.Wa([this.O.getState()],
|
|
1851
1851
|
e=>{switch(e){case b:case c:this.V.debug('Server session opened or working offline, start the application');a||(a=!0,this.da(),$p(this).then(olympe.j.yb().re(()=>cq(this))));break;case d:this.V.debug('Impossible to open a connection to the orchestrator and offline mode is disabled.')}})}da(){}ca(){this.V.info(`Application ${olympe.dc.eb().name(this.C)} (${this.C}) started`);var a=olympe.dc.sources.Ej();a.sb=!0;a.$+=0;a.kc.next(0<a.$);0===a.$&&a.ca&&a.sb&&(a.V.debug(`Cache: set code-as-data version in local storage: ${a.version}`),
|
|
1852
|
-
a.Ha.set('__code-as-data-version__',a.version),a.Oa||(a.ca=!1))}};olympe.sc.
|
|
1853
|
-
olympe.sc.
|
|
1854
|
-
new olympe.dc.Tc;d.lu().forEach(f=>{e.Qb(olympe.dm.DataSource.qx,this.C,f)});d.uu().forEach(f=>{e.Xf(olympe.dm.DataSource.qx,this.C,f)});e.Kd()})}}};olympe.sc.
|
|
1855
|
-
olympe.sa.$e(function(a){E(a,olympe.sc.
|
|
1856
|
-
g:d;return new Map([['offlineEnabled',f],['offlineAutoBackOnline',!f||b]])});Ua(a,olympe.Fa.ba.lz,olympe.sc.
|
|
1857
|
-
new Map([['appTag',b],['getContextMode',c],['debuggerName',d],['autostartProfiler',e],['requireBusinessContainer',f]]));B(a,olympe.sc.
|
|
1858
|
-
olympe.sc.
|
|
1852
|
+
a.Ha.set('__code-as-data-version__',a.version),a.Oa||(a.ca=!1))}};olympe.sc.ve.xr.C='app_instance';olympe.sc.ve.xr.Aa=[olympe.Af.uF];olympe.sc.ve.TT=class{constructor(a,b,c,d){this.V=a;d.get('httpManifestPath');this.C=d.get('manifestCommon');if(!this.C)this.C={};else if('string'===typeof this.C)try{this.C=JSON.parse(this.C)}catch(e){this.V.warn('Invalid manifest common config'),this.C={}}}start(){md().catch(()=>this.V.error('Error while starting the RuntimeHTTPService'));this.V.debug('Started RuntimeHTTPService')}};function eq(a){var b=olympe.dm.DataSource.SERVER;const c=olympe.dc.nb.from(a).oc(olympe.sc.Fb.Pg.C).oc(olympe.dm.ii.O.fe()).oc(olympe.dm.ii.C).zf();a=olympe.dc.nb.from(a).oc(olympe.sc.Fb.Pg.C).oc(olympe.dm.fd.O).zf();return c.concat(a).has(b)}
|
|
1853
|
+
olympe.sc.ve.Jz=class extends olympe.dc.sources.Jz{W(a){return this.db.me(a,olympe.sc.qg)}$(a,b){if(!this.R){super.init();var c=olympe.dc.Rh.from(a).oc(olympe.sc.Fb.Pg.C).zf();if(!(c instanceof olympe.dm.fd))throw Error(`Impossible to initialize the source solver for the application ${a}: no project is linked to it`);b=b?olympe.dc.nb.Jf.Qp:olympe.dc.nb.Jf.cm;Dm(this,c,b);c=new olympe.j.ee('deployed data sources');olympe.dc.nb.from(a).oc(olympe.sc.Fb.Pg.Pa).observe(c,{Xg:b}).subscribe(d=>{const e=
|
|
1854
|
+
new olympe.dc.Tc;d.lu().forEach(f=>{e.Qb(olympe.dm.DataSource.qx,this.C,f)});d.uu().forEach(f=>{e.Xf(olympe.dm.DataSource.qx,this.C,f)});e.Kd()})}}};olympe.sc.ve.ba={Wi:'sc.runtime.Main',dl:'sc.runtime.SourceSolver',Ft:'sc.runtime.appConfig',zK:'sc.runtime.runtimeHTTPServiceConfig',yK:'sc.runtime.RuntimeHTTPService',RJ:'sc.runtime.OfflineAppConfig'};olympe.sc.ve.pa={mH:'app.httpManifestPath',tJ:'app.manifest.common',pJ:'sc.loadBusinessContainer'};
|
|
1855
|
+
olympe.sa.$e(function(a){E(a,olympe.sc.ve.pa.mH,'/runtime/manifest');E(a,olympe.sc.ve.pa.tJ,null);E(a,olympe.sc.ve.pa.pJ,!1);C(a,olympe.Bc.ba.Ar,[new olympe.sa.zb(olympe.Af.pa.Zl),new olympe.sa.zb(olympe.sc.pa.Zl)],(b,c)=>`${b}${c?'-'+c:''}`);C(a,olympe.sc.ve.ba.RJ,[new olympe.sa.zb(olympe.sc.pa.Zl),new olympe.sa.zb(olympe.Fa.pa.mz),new olympe.sa.zb(olympe.Fa.pa.MC)],(b,c,d)=>{let e;const f=null!=(e=a.getParameter(`offline.${b}.enabled`))?e:c;let g;b=null!=(g=a.getParameter(`offline.${b}.autoBackOnline`))?
|
|
1856
|
+
g:d;return new Map([['offlineEnabled',f],['offlineAutoBackOnline',!f||b]])});Ua(a,olympe.Fa.ba.lz,olympe.sc.ve.ba.RJ);B(a,olympe.sc.ve.ba.dl,olympe.sc.ve.Jz,olympe.dc.ba.Zs,new olympe.sa.zb(olympe.dc.pa.yr),new olympe.sa.zb(olympe.dc.pa.SB));Ua(a,olympe.dc.sources.ba.dl,olympe.sc.ve.ba.dl);C(a,olympe.sc.ve.ba.Ft,[new olympe.sa.zb(olympe.sc.pa.Zl),new olympe.sa.zb(olympe.dc.pa.Kt),new olympe.sa.zb(olympe.sc.pa.oG),new olympe.sa.zb(olympe.sc.pa.mF),new olympe.sa.zb(olympe.sc.ve.pa.pJ)],(b,c,d,e,f)=>
|
|
1857
|
+
new Map([['appTag',b],['getContextMode',c],['debuggerName',d],['autostartProfiler',e],['requireBusinessContainer',f]]));B(a,olympe.sc.ve.ba.Wi,olympe.sc.ve.xr,olympe.sc.ba.Vb,olympe.xa.ba.Ob,olympe.Y.ba.bm,olympe.dc.query.ba.fw,olympe.host.ba.fo,olympe.sc.ba.hw,olympe.sc.ve.ba.dl,olympe.oa.ba.ho,olympe.sc.ve.ba.Ft,olympe.sc.ve.ba.yK);C(a,olympe.sc.ve.ba.zK,[new olympe.sa.zb(olympe.sc.ve.pa.mH),new olympe.sa.zb(olympe.sc.ve.pa.tJ)],(b,c)=>new Map([['httpManifestPath',b],['manifestCommon',c]]));B(a,
|
|
1858
|
+
olympe.sc.ve.ba.yK,olympe.sc.ve.TT,olympe.sc.ba.Vb,olympe.Fa.ba.rD,olympe.sc.ba.hw,olympe.sc.ve.ba.zK);olympe.Af.Jq(a,olympe.sc.ve.ba.Wi,'sc.runtime');olympe.Af.Jq(a,olympe.sc.ve.ba.Wi,'sc.headless');olympe.Af.Jq(a,olympe.sc.ve.ba.Wi)},'olympe.sc.runtime');olympe.sc.ui={};olympe.sc.ui.i3=function(a){return a instanceof olympe.sc.ui.Td};function fq(a){const b=olympe.dc.eb(),c=[a.ka()].concat(b.iq(a,olympe.dm.fd.C));return b.xg(olympe.sc.Fg).filter(d=>c.includes(b.Wd(d,olympe.dm.fd.T.fe()))).map(d=>olympe.dc.CloudObject.get(d))}function gq(a){return(new olympe.dc.Kb(olympe.sc.Fg)).transform(olympe.dc.CloudObject.instancesRel).transform(new olympe.dc.Ra.Qf(new olympe.dc.Ca.rt([olympe.dm.fd.T,new olympe.dc.Ra.zj(olympe.dm.fd.Pa,olympe.dc.Ib.ORIGIN,0)],[olympe.dc.Ib.ORIGIN,olympe.dc.Ib.ORIGIN],a)))}
|
|
1859
1859
|
function hq(a,b=!1){const c=new olympe.j.Map,d=e=>{let f,g;const k=olympe.j.Za(olympe.j.kb);e.Vr(l=>k.update(olympe.j.ic(l)));olympe.j.Wa([e.Ai(),e.yl(),e.Bi(),e.bx(),k],(l,m,n,p,r)=>{const t=l+':'+m+':'+n;var u=c.Fj(t);const v=u?u.DA():Object.create(null);u=u?u.ja():null;const w=f?c.Fj(f):null;p=p.valueOf().replace(/^font\//,'');g&&g!==p&&delete v[g];if(w&&t!==f){const x=w.DA();delete x[g];0===Object.keys(x).length?c.remove(f):c.set(f,new olympe.ui.it(w.SD(),w.BA(),w.aE(),x,w.ja()))}g=p;f=t;v[p]=
|
|
1860
1860
|
r.valueOf();c.set(t,new olympe.ui.it(l.valueOf(),m.valueOf(),n.valueOf(),v,u))});if(!b)olympe.j.yb().onDestroy(()=>{f&&c.remove(f)})};b?fq(a).forEach(d):gq(a).forEach(d);return c}olympe.sc.ui.X_=class{};function iq(a,b=!0){const c=d=>{d=a.db.Wd(d,olympe.sc.ui.Gg.propertyRel.fe());return a.db.Ac(d,olympe.sc.bl.C)};return[a.tag].concat(a.db.Yw(a,olympe.sc.ui.Renderable)).reduce((d,e)=>{e=a.db.pc(e,olympe.dc.CloudObject.propertyRel);b&&e.sort((f,g)=>c(f)-c(g));return d.concat(e)},[])}olympe.sc.ui.Aj=class extends olympe.sc.yc{C(){const a=olympe.dc.eb().Yw(this,olympe.sc.ui.Renderable).length;return(new olympe.dc.Mp(this.tag)).FM(a-1).oc(olympe.dc.CloudObject.propertyRel).ek()}Di(){return olympe.sc.jf.Yi.oD}R(){return null}};
|
|
1861
1861
|
olympe.sc.ui.Aj.U=olympe.dc.Ja.C('01612df1f810c91e8997',olympe.sc.ui.Aj);olympe.sc.ui.Aj.$=olympe.sc.ui.Aj.U.tb('016951f802614c4350bf');Y(olympe.dm.Property.U,olympe.sc.ui.Aj.$);olympe.sc.ui.Aj.U.C=(a,b)=>Z(Gn(a,b||'New Abstract Visual Component',olympe.sc.ui.Aj,olympe.sc.ui.ec),olympe.dc.CloudObject.FX,!0).ka();olympe.sc.ui.Aj.prototype.C.K=new olympe.j.J(()=>olympe.dc.Kb,[]);olympe.sc.ui.Cy=class extends olympe.sc.ui.Aj{};olympe.sc.ui.Cy.U=olympe.dc.Ja.C('017a8a97979d7c51ab6a',olympe.sc.ui.Cy);olympe.sc.ui.Cy.U.C=function(a,b){return Gn(a,b||'New Coded Visual Component',olympe.sc.ui.Cy,olympe.sc.ui.ec).ka()};function jq(a){return(new olympe.dc.Mp(a,olympe.sc.ui.ec)).oc(olympe.sc.yc.R).me([olympe.sc.ui.ec]).lv(olympe.sc.ui.Renderable.da).ek()}function kq(a,b,c,d,e){const f=olympe.j.aa,g=olympe.j.ia,k=olympe.sc.ui.Td.za,l=olympe.sc.ui.Td.Pa,m=lq(a,b,e);a=c.Ea(k,b,g,g.pb);b=c.Ea(l,b,g,g.pb);return new olympe.j.ga(olympe.j.$a(a,()=>pc(m.qa(),d.qa()),()=>d.qa(),f),olympe.j.$a(b,()=>pc(m.ta(),d.ta()),()=>d.ta(),f))}
|
|
1862
1862
|
function mq(a,b,c,d,e,f,g,k){const l=olympe.j.aa,m=olympe.sc.ui.Td.Eb,n=olympe.sc.ui.Td.qc;a=a.Ea(olympe.sc.ui.Td.xb,b,olympe.j.ia,olympe.j.ia.pb);const p=new olympe.ui.F.wd(e);p.Ds(g);p.ev(k);p.Es(a);olympe.j.$a(a,()=>{var r=p.T();const t=c.O(m,b,l,r.qa());r=c.O(n,b,l,r.ta());Nf(p,new olympe.j.ga(t,r));const u=e.qa(),v=e.ta();nq(d,v,u,r,f.ta(),!1);nq(d,u,v,t,f.qa(),!0)});return p}
|
|
1863
1863
|
function lq(a,b,c){const d=olympe.sc.ui.Renderable.C,e=olympe.sc.ui.Renderable.D,f=olympe.sc.ui.ec.R,g=olympe.sc.ui.ec.T,k=olympe.j.aa;a=void 0===c?jq(a):c;c=(l,m,n)=>{const p=new olympe.j.Map(k);p.set('0',k.ZERO);l.forEach(r=>{var t=r.ka(),u=Ro(b,t);t=r.Ea(m,u,k);u=r.Ea(n,u,k);p.set(r.ka(),t.Sa(u))},r=>{p.remove(r)});return k.max(p)};return new olympe.j.ga(c(a,f,d),c(a,g,e))}
|
|
1864
|
-
function nq(a,b,c,d,e,f){olympe.j.$a(b.hE(e),()=>{var g=olympe.j.Xa([b,e],(l,m)=>olympe.j.Ba(0>=m?1:l.valueOf()/m.valueOf()),olympe.j.aa);if(f){var k=new olympe.j.ga(b.hb(g),3);g=new olympe.j.ga(d.hb(g),c.ya(3))}else k=new olympe.j.ga(3,b.hb(g)),g=new olympe.j.ga(c.ya(3),d.hb(g));k=new olympe.ui.F.
|
|
1864
|
+
function nq(a,b,c,d,e,f){olympe.j.$a(b.hE(e),()=>{var g=olympe.j.Xa([b,e],(l,m)=>olympe.j.Ba(0>=m?1:l.valueOf()/m.valueOf()),olympe.j.aa);if(f){var k=new olympe.j.ga(b.hb(g),3);g=new olympe.j.ga(d.hb(g),c.ya(3))}else k=new olympe.j.ga(3,b.hb(g)),g=new olympe.j.ga(c.ya(3),d.hb(g));k=new olympe.ui.F.ye(k);k.Ma(Ac());k.Wb(3);k.ah(1E3);a.appendChild(k,'lift'+(f?'X':'Y'),g)})}
|
|
1865
1865
|
olympe.sc.ui.Td=class extends olympe.sc.ui.Aj{ca(){return this.xA(olympe.sc.ui.Td.C)}$(){return[this.za]}D(a,b){var c=olympe.j.ia;const d=olympe.sc.ui.Td.C,e=olympe.sc.ui.Td.za,f=olympe.sc.ui.Td.Pa,g=b.na(a),k=b.Ea(e,a,c,c.pb),l=b.Ea(f,a,c,c.pb),m=jq(this);c=b.Ea(d,a,olympe.sc.ui.mr);const n=new olympe.ui.F.Xe(g),p=b.Ea(olympe.sc.ui.ec.$,a,olympe.j.Color).nl().Se(1).Re();olympe.j.Wa([c],r=>{r.init(a);const t=r.qs(a,m);t.yh(p);t.ws(a.wa(olympe.sc.ui.Renderable.Ha,olympe.j.kb,!0));n.appendChild(olympe.j.$a(k.or(l),
|
|
1866
1866
|
()=>{var u=kq(this,a,b,g,m);t.Gb(u);const v=new olympe.ui.F.Xe(g);u=mq(this,a,b,v,g,u,k,l);u.Nd(t);v.appendChild(u,'scroller');return v},()=>{t.Lr();return t},olympe.ui.F.mb),'groupContent')});return n}C(){return super.C().jy(olympe.sc.ui.Td.qM().transform(olympe.dc.CloudObject.propertyRel))}R(){return jq(this)}};olympe.sc.ui.Td.U=olympe.dc.Ja.C('016be61ab63fb8a838ee',olympe.sc.ui.Td);olympe.sc.ui.Td.C=olympe.sc.ui.Td.U.fa('016be61ab921cb3bdef9');olympe.sc.ui.Td.za=olympe.sc.ui.Td.U.fa('01664466071718f2a34b');
|
|
1867
1867
|
olympe.sc.ui.Td.Pa=olympe.sc.ui.Td.U.fa('016652f9cd0b1e216e6b');olympe.sc.ui.Td.xb=olympe.sc.ui.Td.U.fa('01665907468d5e684177');olympe.sc.ui.Td.Eb=olympe.sc.ui.Td.U.fa('016e7ee3fd5998d599ce');olympe.sc.ui.Td.qc=olympe.sc.ui.Td.U.fa('016e7ee3fd59d238eec0');olympe.sc.ui.Td.U.C=function(a,b,c,d){b=b||'Group';d=d||Gn(a,b,olympe.sc.ui.Td,olympe.sc.ui.ec);Z(d,olympe.dc.li.sj+olympe.dc.CloudObject.nameProp.ka(),b);a=a.create(olympe.sc.ui.Lb.Xe,c);Z(d,olympe.sc.ui.Td.C.ka(),new olympe.dc.Kf(a));return d.ka()};
|
|
1868
1868
|
olympe.sc.ui.Td.prototype.ca.K=new olympe.j.J(()=>olympe.sc.ui.mr,[]);olympe.sc.ui.Td.prototype.D.K=new olympe.j.J(()=>olympe.ui.F.Xe,[]);olympe.sc.ui.Fz=class extends olympe.sc.ui.Td{};olympe.sc.ui.Fz.U=olympe.dc.Ja.C('01612df349e137bbb30b',olympe.sc.ui.Fz);olympe.sc.ui.Fz.U.C=function(a,b,c){b=b||'New Screen';const d=Gn(a,b,olympe.sc.ui.Fz,olympe.sc.ui.Screen);olympe.dc.CloudObject.yf(a,olympe.sc.ui.Td,b,c,d);return d.ka()};olympe.sc.ui.Sz=class extends olympe.sc.ui.Td{};olympe.sc.ui.Sz.U=olympe.dc.Ja.C('0166446c1f124f078a5f',olympe.sc.ui.Sz);olympe.sc.ui.Sz.U.C=function(a,b,c){b=b||'New Visual Component';c=Gn(a,b,olympe.sc.ui.Sz,c||olympe.sc.ui.ec);olympe.dc.CloudObject.yf(a,olympe.sc.ui.Td,b,void 0,c);Z(c,olympe.dc.li.sj+olympe.sc.ui.Renderable.C.ka(),600);Z(c,olympe.dc.li.sj+olympe.sc.ui.Renderable.D.ka(),300);return c.ka()};const oq=new Map,pq=new Set([]);function qq(a){const b=olympe.sc.logic.jd,c=olympe.j.yb(),d=a.ka(),e=Object.create(null),f=Object.create(null);for(const [k,l]of oq)f[k]=l,oq.delete(k);const g=Ui(a.db,d,b.Ks.fe(),c.re((k,l)=>{k?(k=a.db.Wd(l,b.gy),void 0!==f[k]&&(e[l]=k,f[k].enable())):(k=e[l],void 0!==k&&(f[k].disable(),delete e[l]))}));c.onDestroy(()=>{a.db.D(d,b.Ks.fe(),g)})}function rq(a,b,c,d,e){a=new sq(c,a,b);void 0!==e?tq(a,d,e):uq(a,d);oq.set(olympe.dc.Ya(c),a)}
|
|
1869
1869
|
function vq(a,b){const c=`finalThemeClass-${a.tag}`;let d;const e=f=>{d&&d();const g=wq(f,a.De(),'');let k=!1;d=b.on(g,l=>{k=!0;b.set(c,l?f:'default')});k||b.set(c,'default');olympe.j.yb().onDestroy(()=>{d&&d()})};b.set(c,'default');b.on(olympe.sc.ui.Renderable.ob.ka(),f=>e(f))}function xq(a,b){olympe.j.Wa([a.qa()],c=>{b.set(olympe.sc.ui.Renderable.C,c.valueOf())});olympe.j.Wa([a.ta()],c=>{b.set(olympe.sc.ui.Renderable.D,c.valueOf())})}
|
|
1870
|
-
olympe.sc.ui.Renderable=class extends olympe.sc.Runnable{constructor(a,b){super(a,b,olympe.gb.Cb('sc'));this.Ka=!!olympe.sa.getParameter(olympe.sc.pa.VB)}da(){return this.
|
|
1871
|
-
this.D(a)),a.set(e,c));const k=f&&!g?this.render(a,b):c.Tm();if(!g&&(f||a.C.id.startsWith('_'))){const l=a.on(d,m=>{void 0!==k?null!==k&&a.set('_off_container',this.updateParent(m,k)):this.draw(a,m)},a.ja());a.onDestroy(()=>{l();let m;null==(m=a.get('_off_container'))||m();a.remove('_off_container')})}}render(){}updateParent(a,b){b&&a.appendChild(b);return()=>{b.remove()}}D(a){var b=this.
|
|
1872
|
-
a,c,c.pb));b.ws(this.Ea(olympe.sc.ui.Renderable.Ha,a,d));b.Ii(e=>{a.mP(e)})}else b=b.D(a,this),this.C(b,a);return b}be(){return iq(this.
|
|
1870
|
+
olympe.sc.ui.Renderable=class extends olympe.sc.Runnable{constructor(a,b){super(a,b,olympe.gb.Cb('sc'));this.Ka=!!olympe.sa.getParameter(olympe.sc.pa.VB)}da(){return this.kg()instanceof olympe.sc.ui.Td?[this.De()]:[]}W(){const a=olympe.sc.sp.C.pR,b=this.db,c=new Map,d=this.kg();for(const e of iq(d,!1))c.set(a+b.name(e),e);return c}update(a,b,c){const d=olympe.sc.Hb.C.rp,e=olympe.sc.Hb.C.vp,f=this.kg().nq(),g=olympe.sc.ui.Renderable.prototype.D!==this.D;!f&&super.update(a,b,c);c=a.get(e);c||(c=a.C.se().run(()=>
|
|
1871
|
+
this.D(a)),a.set(e,c));const k=f&&!g?this.render(a,b):c.Tm();if(!g&&(f||a.C.id.startsWith('_'))){const l=a.on(d,m=>{void 0!==k?null!==k&&a.set('_off_container',this.updateParent(m,k)):this.draw(a,m)},a.ja());a.onDestroy(()=>{l();let m;null==(m=a.get('_off_container'))||m();a.remove('_off_container')})}}render(){}updateParent(a,b){b&&a.appendChild(b);return()=>{b.remove()}}D(a){var b=this.kg();if(b.nq()){const c=olympe.j.ia,d=olympe.j.kb;b=new olympe.ui.F.Ue(this.tag,this.na(a));b.rd(this.Ea(olympe.sc.ui.ec.Pa,
|
|
1872
|
+
a,c,c.pb));b.ws(this.Ea(olympe.sc.ui.Renderable.Ha,a,d));b.Ii(e=>{a.mP(e)})}else b=b.D(a,this),this.C(b,a);return b}be(){return iq(this.kg())}draw(a,b){super.onUpdate(a,[],[]);a=document.createElement('p');a.innerHTML=`No code found for:<br/>${this.Qe().name()}<br/>(${this.De()})`;a.style['vertical-align']='middle';a.style['text-align']='center';a.style.width='inherit';a.style.height='inherit';a.style.display='table-cell';a.style['background-color']='rgba(192, 192, 192, 0.5)';a.style['font-family']=
|
|
1873
1873
|
'Roboto';b.appendChild(a)}C(a,b){a.Ma(this.Ea(olympe.sc.ui.Renderable.$,b,olympe.j.Color,Dc()));qq(this)}T(){const a=[this.sb,this.ma,this.ca,this.$];this.Ka||a.splice(3,0,this.za);return a}za(a,b){vq(this,a);const c=olympe.j.yb(),d=this.De(),e=olympe.sc.ui.Aj.$,f=this.db.Yw(this.De(),olympe.sc.ui.Renderable);f.push(d);let g=[];f.forEach(l=>{g=g.concat(this.db.pc(l,e))});let k;a.on(`finalThemeClass-${this.tag}`,c.re(l=>{k&&k.destroy();const m=n=>{const p=wq(l,d,n);a.on(p,r=>{b(n,r)})};k=new olympe.j.ee(`onFinalThemeClassKey for ${this.tag}`);
|
|
1874
1874
|
k.run(()=>{for(const n of g)m(n);k.onDestroy(()=>{for(const n of g)b(n,null)})})}))}na(a){return new olympe.j.ga(this.Ea(olympe.sc.ui.Renderable.C,a,olympe.j.aa,olympe.j.aa.ZERO,!0),this.Ea(olympe.sc.ui.Renderable.D,a,olympe.j.aa,olympe.j.aa.ZERO,!0))}gf(){return this.yg(olympe.sc.ui.Renderable.da)}R(){return null}};olympe.sc.ui.Renderable.prototype.getProperties=olympe.sc.ui.Renderable.prototype.be;let yq=0;
|
|
1875
|
-
function tq(a,b,c){!a.$&&a.C.yh(!0);a.O=a.T.re(()=>{!a.$&&a.C.yh(!1);const d=b(()=>a.R.Qq(a.W));olympe.j.yb().onDestroy(()=>{c(d);a.$||a.C.lc()||a.C
|
|
1875
|
+
function tq(a,b,c){!a.$&&a.C.yh(!0);a.O=a.T.re(()=>{!a.$&&a.C.yh(!1);const d=b(()=>a.R.Qq(a.W));olympe.j.yb().onDestroy(()=>{c(d);a.$||a.C.lc()||a.C.$f()||a.C.yh(!0)})})}function uq(a,b){null!=a.O||(a.O=a.T.re(()=>{olympe.j.Wa([b()],c=>{a.R.set(a.W,c)});olympe.j.yb().onDestroy(()=>a.R.remove(a.W))}))}
|
|
1876
1876
|
class sq{constructor(a,b,c){++yq;this.W=a;this.R=b;this.C=c;this.T=new olympe.j.ee('InteractionBinder context '+yq);this.O=null;this.D=0;this.$=pq.has(this.C.constructor)}enable(){++this.D;1===this.D&&this.O()}disable(){--this.D;0===this.D&&this.T.destroy()}}olympe.sc.ui.Renderable.U=Nh(olympe.dc.Ja.C('01612df219d0691f6b4d',olympe.sc.ui.Renderable));olympe.sc.ui.Renderable.ob=olympe.sc.ui.Renderable.U.fa('0161d7ba2406f5d75a37');olympe.sc.ui.Renderable.$=olympe.sc.ui.Renderable.U.fa('01611d9c686bbed5fdba');
|
|
1877
|
-
olympe.sc.ui.Renderable.Ha=olympe.sc.ui.Renderable.U.fa('01611d9c686bbed5fddd');olympe.sc.ui.Renderable.C=olympe.sc.ui.Renderable.U.fa('01611d99ec0553b5926e');olympe.sc.ui.Renderable.D=olympe.sc.ui.Renderable.U.fa('01611d9a0452a179c68f');olympe.sc.ui.Renderable.da=olympe.sc.ui.Renderable.U.fa('016c23bd12493a7e1b2e');olympe.sc.ui.Renderable.prototype.na.K=olympe.j.J.W;olympe.sc.ui.Renderable.prototype.gf.K=olympe.j.J.D;olympe.sc.ui.ec=class extends olympe.sc.ui.Renderable{constructor(a,b){super(a,b)}ae(a){return new olympe.j.ga(this.Ea(olympe.sc.ui.ec.R,a,olympe.j.aa,olympe.j.aa.ZERO),this.Ea(olympe.sc.ui.ec.T,a,olympe.j.aa,olympe.j.aa.ZERO))}R(a){const b=this.
|
|
1877
|
+
olympe.sc.ui.Renderable.Ha=olympe.sc.ui.Renderable.U.fa('01611d9c686bbed5fddd');olympe.sc.ui.Renderable.C=olympe.sc.ui.Renderable.U.fa('01611d99ec0553b5926e');olympe.sc.ui.Renderable.D=olympe.sc.ui.Renderable.U.fa('01611d9a0452a179c68f');olympe.sc.ui.Renderable.da=olympe.sc.ui.Renderable.U.fa('016c23bd12493a7e1b2e');olympe.sc.ui.Renderable.prototype.na.K=olympe.j.J.W;olympe.sc.ui.Renderable.prototype.gf.K=olympe.j.J.D;olympe.sc.ui.ec=class extends olympe.sc.ui.Renderable{constructor(a,b){super(a,b)}ae(a){return new olympe.j.ga(this.Ea(olympe.sc.ui.ec.R,a,olympe.j.aa,olympe.j.aa.ZERO),this.Ea(olympe.sc.ui.ec.T,a,olympe.j.aa,olympe.j.aa.ZERO))}R(a){const b=this.kg();return b.LA()?b.YN().Mr().me([olympe.sc.ui.ec]).lv(olympe.sc.ui.Renderable.da).ek():a.includes(this.ka())?this.db.pc(b,olympe.dc.CloudObject.propertyRel).filter(c=>this.db.Xm(this.db.Wd(c,olympe.dm.Property.typeRel),olympe.sc.ui.ec)).reduce((c,d)=>{olympe.j.Wa([this.xA(d)],
|
|
1878
1878
|
e=>{e=e.Qe();a.includes(olympe.dc.Ya(e))&&c.set(d,e)});return c},new olympe.j.Be(olympe.dm.hm)):null}C(a,b){const c=olympe.j.Color,d=olympe.j.aa,e=olympe.j.ia,f=olympe.j.kb;a.rd(this.Ea(olympe.sc.ui.ec.Pa,b,e,e.pb));a.ad(pc(this.Ea(olympe.sc.ui.ec.vf,b,d),0));a.nd(this.Ea(olympe.sc.ui.ec.Yh,b,c));a.Wb(this.Ea(olympe.sc.ui.ec.cf,b,d));a.Gs(this.Ea(olympe.sc.ui.ec.$V,b,d));olympe.j.Wa([this.Ea(olympe.sc.ui.ec.lg,b,f)],g=>{g=g.valueOf().split(';').filter(k=>''!==k).map(k=>k.split(':')).filter(([k,l])=>
|
|
1879
1879
|
void 0!==k&&void 0!==l);for(const [k,l]of g)a.ib(k.trim(),l.trim());a.Bf()});olympe.j.Wa([this.Ea(olympe.sc.ui.ec.ld,b,e,e.pb)],g=>{a.ib('overflow',g.valueOf()?'visible':'hidden')});rq(b,a,olympe.sc.ui.ec.FQ,a.Vc.bind(a),a.Pj.bind(a));super.C(a,b)}};olympe.sc.ui.ec.U=olympe.dc.Ja.C('01664466071746f5e167',olympe.sc.ui.ec);olympe.sc.ui.ec.R=olympe.sc.ui.ec.U.fa('01611d99243ad989b91b');olympe.sc.ui.ec.T=olympe.sc.ui.ec.U.fa('01611d9962e7f4f9a26d');olympe.sc.ui.ec.Pa=olympe.sc.ui.ec.U.fa('01611d9a88f340465399');
|
|
1880
1880
|
olympe.sc.ui.ec.$V=olympe.sc.ui.ec.U.fa('016b08fd79c14bad3193');olympe.sc.ui.ec.lg=olympe.sc.ui.ec.U.fa('017c5114f14f96c4f187');olympe.sc.ui.ec.ld=olympe.sc.ui.ec.U.fa('017e6d4a0974fd84338f');olympe.sc.ui.ec.vf=olympe.sc.ui.ec.U.fa('0163ba941097ae1920b0');olympe.sc.ui.ec.Yh=olympe.sc.ui.ec.U.fa('0163ba942b6ee2bc78c0');olympe.sc.ui.ec.cf=olympe.sc.ui.ec.U.fa('0163ba9e1428240acec7');olympe.sc.ui.ec.QX=olympe.sc.ui.ec.U.fa('0162e2bd70fb607442d4');olympe.sc.ui.ec.FQ=olympe.sc.ui.ec.U.fa('01619aacf66faf45a75d');
|
|
@@ -1889,14 +1889,14 @@ olympe.sc.ui.Ga.wZ=olympe.sc.ui.Ga.U.fa('0168dc76919c78c432de');olympe.sc.ui.Ga.
|
|
|
1889
1889
|
olympe.sc.ui.Ga.Cl=olympe.sc.ui.Ga.U.fa('0168dcdbac93683e961f');olympe.sc.ui.Ga.PX=olympe.sc.ui.Ga.U.fa('0168dcdbe096622948a4');olympe.sc.ui.Ga.Ko=olympe.sc.ui.Ga.U.fa('0168dcdc172e489c48b9');olympe.sc.ui.Ga.fF=olympe.sc.ui.Ga.U.fa('0168dcdc4ef0492f7be9');olympe.sc.ui.Ga.hF=olympe.sc.ui.Ga.U.fa('0168dcdc6d186bf8c60d');olympe.sc.ui.Ga.fV=olympe.sc.ui.Ga.U.fa('0168dcdcaa879e1d49ec');olympe.sc.ui.Ga.eV=olympe.sc.ui.Ga.U.fa('0168dcdcd0e43889eeaf');olympe.sc.ui.Ga.OX=olympe.sc.ui.Ga.U.fa('0168e13a2c9eff4b1bb2');
|
|
1890
1890
|
olympe.sc.ui.Ga.DX=olympe.sc.ui.Ga.U.fa('0168e13a668be409860f');olympe.sc.ui.Ga.BX=olympe.sc.ui.Ga.U.fa('0168e13a9bbb31492482');olympe.sc.ui.Ga.cW=olympe.sc.ui.Ga.U.fa('0168e13ad49117906a9b');olympe.sc.ui.Ga.PQ=olympe.sc.ui.Ga.U.fa('016880862139c3324a2b');olympe.sc.ui.Ga.zS=olympe.sc.ui.Ga.U.fa('0168808622067a6ccc86');olympe.sc.ui.Ga.zT=olympe.sc.ui.Ga.U.fa('01688086226bdf417abe');olympe.sc.ui.Ga.eT=olympe.sc.ui.Ga.U.fa('0168808622d577c581a5');olympe.sc.ui.Ga.oT=olympe.sc.ui.Ga.U.fa('0168c772451ab8b1295c');
|
|
1891
1891
|
olympe.sc.ui.Ga.JS=olympe.sc.ui.Ga.U.fa('0168c772458260728005');olympe.sc.ui.Ga.XS=olympe.sc.ui.Ga.U.fa('0168c77245ec33d5d3d6');olympe.sc.ui.Ga.GT=olympe.sc.ui.Ga.U.fa('0168c7724654174d5289');olympe.sc.ui.Ga.bV=olympe.sc.ui.Ga.U.fa('0168c7724990f6c6e2c5');olympe.sc.ui.Ga.UU=olympe.sc.ui.Ga.U.fa('0168c77249f71507f1a0');olympe.sc.ui.Ga.YU=olympe.sc.ui.Ga.U.fa('0168c7724a5ffdb8603c');olympe.sc.ui.Ga.OU=olympe.sc.ui.Ga.U.fa('0168c7724ac89011b0f1');olympe.sc.ui.Ga.WQ=olympe.sc.ui.Ga.U.fa('0168c7724ccef19bd4fe');
|
|
1892
|
-
olympe.sc.ui.Ga.cV=olympe.sc.ui.Ga.U.fa('0168c7724d3698b4bacc');olympe.sc.ui.Ga.eR=olympe.sc.ui.Ga.U.fa('0168c7724d9a84b5addb');olympe.sc.ui.Ga.xR=olympe.sc.ui.Ga.U.fa('0168c7724dff8c67d120');olympe.sc.ui.Ga.yS=olympe.sc.ui.Ga.U.fa('0168c7724e65de8791ac');olympe.sc.ui.Ga.tU=olympe.sc.ui.Ga.U.fa('0168c7724eca5653c809');olympe.sc.ui.Ga.PT=olympe.sc.ui.Ga.U.fa('0168c7724f30c049da91');olympe.sc.ui.ll=class extends olympe.sc.ui.Aj{D(){return this.Ig(olympe.sc.ui.ll.C,olympe.sc.ui.Screen)}};olympe.sc.ui.ll.U=olympe.dc.Ja.C('0112025000000015def0',olympe.sc.ui.ll);olympe.sc.ui.ll.C=olympe.sc.ui.ll.U.tb('0163f988aa658051daeb');olympe.sc.ui.ll.prototype.D.K=new olympe.j.J(()=>olympe.sc.ui.Screen,[]);olympe.sc.ui.mr=class extends olympe.sc.
|
|
1892
|
+
olympe.sc.ui.Ga.cV=olympe.sc.ui.Ga.U.fa('0168c7724d3698b4bacc');olympe.sc.ui.Ga.eR=olympe.sc.ui.Ga.U.fa('0168c7724d9a84b5addb');olympe.sc.ui.Ga.xR=olympe.sc.ui.Ga.U.fa('0168c7724dff8c67d120');olympe.sc.ui.Ga.yS=olympe.sc.ui.Ga.U.fa('0168c7724e65de8791ac');olympe.sc.ui.Ga.tU=olympe.sc.ui.Ga.U.fa('0168c7724eca5653c809');olympe.sc.ui.Ga.PT=olympe.sc.ui.Ga.U.fa('0168c7724f30c049da91');olympe.sc.ui.ll=class extends olympe.sc.ui.Aj{D(){return this.Ig(olympe.sc.ui.ll.C,olympe.sc.ui.Screen)}};olympe.sc.ui.ll.U=olympe.dc.Ja.C('0112025000000015def0',olympe.sc.ui.ll);olympe.sc.ui.ll.C=olympe.sc.ui.ll.U.tb('0163f988aa658051daeb');olympe.sc.ui.ll.prototype.D.K=new olympe.j.J(()=>olympe.sc.ui.Screen,[]);olympe.sc.ui.mr=class extends olympe.sc.gg{init(a){const b=a.set.bind(a);Bp(this,a,b,b)}run(){}qs(){}D(){}C(){}};olympe.sc.ui.mr.U=Nh(olympe.dc.Ja.C('016be61abe39070d9c42',olympe.sc.ui.mr));olympe.sc.ui.mr.prototype.qs.K=new olympe.j.J(()=>olympe.ui.F.mb,[]);olympe.sc.ui.Pd=class extends olympe.sc.ui.Ga{C(a,b){const c=olympe.j.Color,d=olympe.j.aa,e=olympe.j.ia,f=olympe.j.kb;a instanceof olympe.ui.F.od||(a.Jb(this.Ea(olympe.sc.ui.Pd.O,b,f)),a.vb(this.Ea(olympe.sc.ui.Pd.fontFamilyProp,b,f)),a.rb(this.Ea(olympe.sc.ui.Pd.xk,b,d)),a.Bb(this.Ea(olympe.sc.ui.Pd.sb,b,d)),a.Od(olympe.j.$a(this.Ea(olympe.sc.ui.Pd.Oa,b,e,e.pb),()=>olympe.ui.ha.Uy.tR,()=>olympe.ui.ha.Uy.jz,f)),a.lb(this.Ea(olympe.sc.ui.Pd.Ka,b,c)),a.Ub(this.Ea(olympe.sc.ui.Pd.xb,b,f)),a.Xb(this.Ea(olympe.sc.ui.Pd.Eb,
|
|
1893
1893
|
b,f)));super.C(a,b)}};olympe.sc.ui.Pd.U=Nh(olympe.dc.Ja.C('01633e9252d8e1c4f25b',olympe.sc.ui.Pd));olympe.sc.ui.Pd.fontFamilyProp=olympe.sc.ui.Pd.U.fa('01635eaa384788490dc5');olympe.sc.ui.Pd.xk=olympe.sc.ui.Pd.U.fa('01633fa38ad45c58d04d');olympe.sc.ui.Pd.Oa=olympe.sc.ui.Pd.U.fa('01633fa38c309356404a');olympe.sc.ui.Pd.sb=olympe.sc.ui.Pd.U.fa('01633fa38d2863f0a464');olympe.sc.ui.Pd.Ka=olympe.sc.ui.Pd.U.fa('01633fa5303ccd8c1801');olympe.sc.ui.Pd.xb=olympe.sc.ui.Pd.U.fa('0164229fd527ecd56900');
|
|
1894
|
-
olympe.sc.ui.Pd.Eb=olympe.sc.ui.Pd.U.fa('016422a069b9bd45e8a8');olympe.sc.ui.Pd.O=olympe.sc.ui.Pd.U.fa('01633fa386be67e6fd1d');olympe.sc.ui.Me=class extends olympe.sc.ui.Pd{C(a,b){const c=olympe.j.aa,d=olympe.j.ia;pq.add(a.constructor);a.Og(this.Ea(olympe.sc.ui.Me.ma,b,olympe.j.kb));a.Zg(this.Ea(olympe.sc.ui.Me.Hg,b,olympe.j.Color));a.td(this.Ea(olympe.sc.ui.Me.Ls,b,c,c.ZERO));a.sd(this.Ea(olympe.sc.ui.Me.Pb,b,c,c.ZERO));a.Fc(this.Ea(olympe.sc.ui.Me.Yc,b,c,c.ZERO));a.Kc(this.Ea(olympe.sc.ui.Me
|
|
1894
|
+
olympe.sc.ui.Pd.Eb=olympe.sc.ui.Pd.U.fa('016422a069b9bd45e8a8');olympe.sc.ui.Pd.O=olympe.sc.ui.Pd.U.fa('01633fa386be67e6fd1d');olympe.sc.ui.Me=class extends olympe.sc.ui.Pd{C(a,b){const c=olympe.j.aa,d=olympe.j.ia;pq.add(a.constructor);a.Og(this.Ea(olympe.sc.ui.Me.ma,b,olympe.j.kb));a.Zg(this.Ea(olympe.sc.ui.Me.Hg,b,olympe.j.Color));a.td(this.Ea(olympe.sc.ui.Me.Ls,b,c,c.ZERO));a.sd(this.Ea(olympe.sc.ui.Me.Pb,b,c,c.ZERO));a.Fc(this.Ea(olympe.sc.ui.Me.Yc,b,c,c.ZERO));a.Kc(this.Ea(olympe.sc.ui.Me.ag,b,c,c.ZERO));a.Cf(this.Ea(olympe.sc.ui.Me.kc,b,d,d.pb));rq(b,a,olympe.sc.ui.Me.vg,a.fj.bind(a),a.O.bind(a));rq(b,a,olympe.sc.ui.Me.gd,
|
|
1895
1895
|
a.ej.bind(a),a.D.bind(a));super.C(a,b)}};olympe.sc.ui.Me.U=olympe.dc.Ja.C('016e64ba43b2367826cd',olympe.sc.ui.Me);olympe.sc.ui.Me.ma=olympe.sc.ui.Me.U.fa('0164b26aecbaa5ca5b23');olympe.sc.ui.Me.Hg=olympe.sc.ui.Me.U.fa('0164b69dd71d223649bc');olympe.sc.ui.Me.kc=olympe.sc.ui.Me.U.fa('016e64de79ddfffad3ea');olympe.sc.ui.Me.Ls=olympe.sc.ui.Me.U.fa('0168387e0011b88e3095');olympe.sc.ui.Me.Pb=olympe.sc.ui.Me.U.fa('0168387e0527edb9bd2a');olympe.sc.ui.Me.Yc=olympe.sc.ui.Me.U.fa('0168387e0a992ee500be');
|
|
1896
|
-
olympe.sc.ui.Me
|
|
1896
|
+
olympe.sc.ui.Me.ag=olympe.sc.ui.Me.U.fa('0168387e0e5bfd3e00d8');olympe.sc.ui.Me.vg=olympe.sc.ui.Me.U.fa('0168377a219478c7a296');olympe.sc.ui.Me.gd=olympe.sc.ui.Me.U.fa('0168377a5118eb32afd2');olympe.sc.ui.Uv=class extends olympe.sc.ui.Td{};olympe.sc.ui.Uv.U=olympe.dc.Ja.C('01634497d5e7cab7022f',olympe.sc.ui.Uv);olympe.sc.ui.Uv.U.C=function(a,b,c,d){b=b||'List Element';c=Gn(a,{[olympe.dc.CloudObject.nameProp.ka()]:b},olympe.sc.ui.Uv,olympe.sc.ui.Z.$n);olympe.dc.CloudObject.yf(a,olympe.sc.ui.Td,b,d,c);return c.ka()};olympe.sc.ui.eL=class extends olympe.sc.ui.ll{};olympe.sc.ui.eL.U=olympe.dc.Ja.C('016c8f3b84720165aac5',olympe.sc.ui.eL);function Aq(a,b){const c=new Map;a.db.pc(a,olympe.sc.ui.ef.D).forEach(d=>{var e=a.db.Wd(d,olympe.sc.ui.th.C);d=a.db.Wd(d,olympe.sc.ui.th.D);a.V.debug(`ScreenTransition: Saving property ${e} to ${d}`);e=b.get(e);c.set(d,e)});return c}
|
|
1897
1897
|
olympe.sc.ui.ef=class extends olympe.dc.CloudObject{constructor(a,b,c){super(a,b);this.V=c}CA(){return this.ml(olympe.sc.ui.ef.O).zf()}nA(){return this.ml(olympe.sc.ui.ef.C).zf()}lA(){return this.pc(olympe.sc.ui.ef.R,olympe.dm.Property).Vd()}C(){return this.pc(olympe.sc.ui.ef.D,olympe.sc.ui.th)}};olympe.sc.ui.ef.U=olympe.dc.Ja.C('01619a10457e749fdf59',olympe.sc.ui.ef,olympe.sc.ba.Vb);olympe.sc.ui.ef.O=olympe.sc.ui.ef.U.tb('01619a16a406bf504c9f');olympe.sc.ui.ef.C=olympe.sc.ui.ef.U.tb('01619a16a406bf504c9e');
|
|
1898
|
-
olympe.sc.ui.ef.R=olympe.sc.ui.ef.U.tb('01619a16a406bf504c90');olympe.sc.ui.ef.D=olympe.sc.ui.ef.U.tb('0162befc703dfd7b93b4');Y(olympe.dm.Property.U,olympe.sc.ui.ef.R);olympe.sc.ui.ef.prototype.CA.K=new olympe.j.J(()=>olympe.sc.ui.Screen,[]);olympe.sc.ui.ef.prototype.nA.K=new olympe.j.J(()=>olympe.sc.ui.Screen,[]);olympe.sc.ui.ef.prototype.lA.K=new olympe.j.J(()=>olympe.dm.Property,[]);olympe.sc.ui.ef.prototype.C.K=new olympe.j.J(()=>olympe.dc.Kb,[]);olympe.sc.ui.Oz=class extends olympe.sc.Fb.Ss{constructor(a,b,c,d,e,f){super(a,b,c);this.D=d;this.C=e;this.Pa=f}
|
|
1899
|
-
b))}render(a){const b=this.D.hf();var c=this.za();const d=this.
|
|
1898
|
+
olympe.sc.ui.ef.R=olympe.sc.ui.ef.U.tb('01619a16a406bf504c90');olympe.sc.ui.ef.D=olympe.sc.ui.ef.U.tb('0162befc703dfd7b93b4');Y(olympe.dm.Property.U,olympe.sc.ui.ef.R);olympe.sc.ui.ef.prototype.CA.K=new olympe.j.J(()=>olympe.sc.ui.Screen,[]);olympe.sc.ui.ef.prototype.nA.K=new olympe.j.J(()=>olympe.sc.ui.Screen,[]);olympe.sc.ui.ef.prototype.lA.K=new olympe.j.J(()=>olympe.dm.Property,[]);olympe.sc.ui.ef.prototype.C.K=new olympe.j.J(()=>olympe.dc.Kb,[]);olympe.sc.ui.Oz=class extends olympe.sc.Fb.Ss{constructor(a,b,c,d,e,f){super(a,b,c);this.D=d;this.C=e;this.Pa=f}ue(a){this.render(a);super.ue(a);const b=ge(this.C,olympe.Y.xj.Vf,c=>{c.c===olympe.Y.xt.JU&&(0<lk(olympe.dc.nb.from(olympe.sc.ui.Vh.za).oc(olympe.sc.logic.jd.gy.fe()),[olympe.sc.logic.jd.Ks],this.De()).zf().size()?(this.V.debug('A custom listener has been set for the onUpgradeDone event.'),a.Qq(olympe.sc.ui.Vh.za)):(new olympe.sc.ui.Z.TU(this.Pa)).Sk(!0))});a.onDestroy(()=>oe(this.C,olympe.Y.xj.Vf,
|
|
1899
|
+
b))}render(a){const b=this.D.hf();var c=this.za();const d=this.kg();this.D.ci(d.bb());this.V.debug('Loading fonts');hq(c,Vo(a)).forEach(f=>{b.tI(f)});this.V.debug('Apply theme');d.C().oM(a);const e=d.D();c=Ro(a,e.ka());xq(b.na(),c);c.qB(olympe.sc.Hb.C.vp).then(f=>{a.set(olympe.sc.Hb.C.wB,!0);b.appendChild(f,'ui_app_screenflow')}).catch(()=>this.V.warn(`Screenflow ${e.ka()} has not been rendered.`))}};
|
|
1900
1900
|
olympe.sc.ui.Oz.U=olympe.dc.Ja.C('0113031000000aca1101',olympe.sc.ui.Oz,olympe.sc.ba.Vb,olympe.ui.ba.Ob,olympe.Y.ba.Jt,olympe.host.ba.Lt);olympe.sc.ui.Vh=class extends olympe.sc.Fb.Pg{Di(){return olympe.sc.jf.Yi.HK}C(){return this.Ig(olympe.sc.ui.Vh.$,olympe.sc.ui.vh)}D(){const a=this.db.eA(this.tag,[olympe.sc.yc.R],b=>this.db.me(b,olympe.sc.ui.Z.fl));if(null===a)throw Error('Cannot find the Screenflow associated to the UIApplication. The UIApplication was likely badly created.');return olympe.dc.CloudObject.get(a)}R(){return this.Vw().Mr().me([olympe.sc.ui.Z.fl]).ek()}};
|
|
1901
1901
|
olympe.sc.ui.Vh.U=olympe.dc.Ja.C('011203100000000adef1',olympe.sc.ui.Vh,olympe.ui.ba.Ob,olympe.sc.ba.Vb);olympe.sc.ui.Vh.za=olympe.sc.Fb.Pg.U.fa('016200d21c9069cf23a3');olympe.sc.ui.Vh.$=olympe.sc.ui.Vh.U.tb('016200d21c9069cf23b4');
|
|
1902
1902
|
olympe.sc.ui.Vh.U.C=(a,b,c,d)=>{b=Gn(a,b||'New UI App',olympe.sc.ui.Vh,olympe.sc.ui.Oz);var e=olympe.oa.Rr();e=olympe.dc.CloudObject.yf(a,olympe.sc.ui.Z.fl,'UIApp Screenflow',e);a.Qb(olympe.sc.yc.R,b,e);a.Qb(olympe.dc.CloudObject.containsRel,b,e);a.Qb(olympe.sc.Fb.Pg.C,b,c);d&&a.Qb(olympe.sc.ui.Vh.$,b,d);return b.ka()};olympe.sc.ui.Vh.prototype.C.K=new olympe.j.J(()=>olympe.sc.ui.vh,[]);olympe.sc.ui.Vh.prototype.D.K=olympe.j.J.O;olympe.sc.ui.Screen=class extends olympe.sc.ui.Renderable{T(){return[this.ma,this.Pa,this.ca,this.za,this.$]}Pa(a,b){if(a=a.Qa('MAP_PROPS'))for(const [c,d]of a)b(c,d)}};olympe.sc.ui.Screen.U=olympe.dc.Ja.C('01612df3703450d895ac',olympe.sc.ui.Screen);olympe.sc.ui.Screen.O=Y(olympe.sc.ui.Screen.U,olympe.sc.ui.ef.C);olympe.sc.ui.Screen.sb=Y(olympe.sc.ui.Screen.U,olympe.sc.ui.ef.O);olympe.sc.ui.Screen.za=olympe.sc.ui.Screen.U.fa('01648dde0de293c23f90');olympe.sc.ui.Screen.T=olympe.sc.ui.Screen.U.fa('01648dde0de252c9f851');
|
|
@@ -1912,24 +1912,24 @@ this.yg(olympe.sc.ui.Ze.Comment.D))}};olympe.sc.ui.Ze.Comment.$=100;olympe.sc.ui
|
|
|
1912
1912
|
olympe.sc.ui.Ze.Comment.C=olympe.sc.ui.Ze.Comment.U.tb('0184be3f135a83fd6cc3');olympe.sc.ui.Ze.Comment.prototype.getType.K=olympe.j.J.R;olympe.sc.ui.Ze.Comment.prototype.Lj.K=olympe.j.J.R;olympe.sc.ui.Ze.Comment.prototype.na.K=olympe.j.J.W;olympe.sc.ui.Ze.MB=class extends olympe.dm.Enum{};olympe.sc.ui.Ze.MB.C={QZ:'Comment',n2:'Todo'};olympe.sc.ui.Ze.MB.U=olympe.dc.Ja.C('0184cc42e06205501bc7',olympe.sc.ui.Ze.MB);olympe.sc.ui.Z={};olympe.sc.ui.Z.he=class extends olympe.sc.ui.Ga{constructor(a,b){super(a,b)}D(a){const b=new olympe.ui.F.Audio(this.na(a));b.ne(this.Ea(olympe.sc.ui.Z.he.urlProp,a,olympe.j.kb));this.C(b,a);b.nj(this.Ea(olympe.sc.ui.Z.he.za,a,olympe.j.ia,olympe.j.ia.pb));olympe.j.Fl([b.D.wa()],()=>{});b.oj(this.Ea(olympe.sc.ui.Z.he.Ka,a,olympe.j.ia));b.jj(this.Ea(olympe.sc.ui.Z.he.ma,a,olympe.j.ia));olympe.j.Fl([this.Ea(olympe.sc.ui.Z.he.O,a,olympe.j.ia)],c=>{c.valueOf()?b.play():b.pause()});olympe.j.Fl([b.C.wa()],
|
|
1913
1913
|
c=>{a.set(olympe.sc.ui.Z.he.O,c.Re())});b.Ik(this.O(olympe.sc.ui.Z.he.sb,a,olympe.j.aa,b.volume.wa(),olympe.j.aa.ONE));olympe.j.Fl([this.Ea(olympe.sc.ui.Z.he.Oa,a,olympe.j.aa)],c=>{olympe.j.Qa(this.Ea(olympe.sc.ui.Z.he.O,a,olympe.j.ia)).valueOf()||b.Gk(c)});olympe.j.Fl([b.O.wa()],c=>{a.set(olympe.sc.ui.Z.he.Oa,c.hb(100).trunc().Ua(100))});olympe.j.Wa([b.duration.wa()],c=>{a.set(olympe.sc.ui.Z.he.xb,c)});return b}};olympe.sc.ui.Z.he.U=olympe.dc.Ja.C('016c04e78462a540a8e0',olympe.sc.ui.Z.he);
|
|
1914
1914
|
olympe.sc.ui.Z.he.urlProp=olympe.sc.ui.Z.he.U.fa('016c04e78462a540a8e1');olympe.sc.ui.Z.he.Ka=olympe.sc.ui.Z.he.U.fa('016c04e78462a540a8e2');olympe.sc.ui.Z.he.ma=olympe.sc.ui.Z.he.U.fa('016c04e78462a540a8e3');olympe.sc.ui.Z.he.sb=olympe.sc.ui.Z.he.U.fa('016c04e78462a540a8e5');olympe.sc.ui.Z.he.O=olympe.sc.ui.Z.he.U.fa('016c04e78462a540a8e4');olympe.sc.ui.Z.he.xb=olympe.sc.ui.Z.he.U.fa('016c04e78462a540a8e7');olympe.sc.ui.Z.he.Oa=olympe.sc.ui.Z.he.U.fa('016c04e78462a540a8e6');
|
|
1915
|
-
olympe.sc.ui.Z.he.za=olympe.sc.ui.Z.he.U.fa('016c04e78462a540a8e8');olympe.sc.ui.Z.he.U.C=function(a,b){a=a.create(olympe.sc.ui.Z.he);b&&Z(a,olympe.dc.CloudObject.nameProp,b);Z(a,olympe.sc.ui.Renderable.C,olympe.j.Ba(384));Z(a,olympe.sc.ui.Renderable.D,olympe.j.Ba(55));Z(a,olympe.sc.ui.Z.he.Ka,olympe.j.ia.C);Z(a,olympe.sc.ui.Z.he.ma,olympe.j.ia.pb);Z(a,olympe.sc.ui.Z.he.za,olympe.j.ia.pb);Z(a,olympe.sc.ui.Z.he.sb,olympe.j.aa.ONE);return a.ka()};olympe.sc.ui.Z.jc=class extends olympe.sc.ui.Pd{D(a){var b=olympe.j.Color,c=olympe.j.ia;const d=olympe.sc.ui.Z.jc.ma;var e=olympe.sc.ui.Z.jc.za;const f=olympe.sc.ui.Z.jc.lD,g=olympe.sc.ui.Renderable.C,k=olympe.sc.ui.Renderable.D,l=new olympe.ui.F.jc(this.na(a));this.C(l,a);const m=this.Ea(olympe.sc.ui.Renderable.$,a,b);var n=this.Ea(olympe.sc.ui.Z.jc
|
|
1915
|
+
olympe.sc.ui.Z.he.za=olympe.sc.ui.Z.he.U.fa('016c04e78462a540a8e8');olympe.sc.ui.Z.he.U.C=function(a,b){a=a.create(olympe.sc.ui.Z.he);b&&Z(a,olympe.dc.CloudObject.nameProp,b);Z(a,olympe.sc.ui.Renderable.C,olympe.j.Ba(384));Z(a,olympe.sc.ui.Renderable.D,olympe.j.Ba(55));Z(a,olympe.sc.ui.Z.he.Ka,olympe.j.ia.C);Z(a,olympe.sc.ui.Z.he.ma,olympe.j.ia.pb);Z(a,olympe.sc.ui.Z.he.za,olympe.j.ia.pb);Z(a,olympe.sc.ui.Z.he.sb,olympe.j.aa.ONE);return a.ka()};olympe.sc.ui.Z.jc=class extends olympe.sc.ui.Pd{D(a){var b=olympe.j.Color,c=olympe.j.ia;const d=olympe.sc.ui.Z.jc.ma;var e=olympe.sc.ui.Z.jc.za;const f=olympe.sc.ui.Z.jc.lD,g=olympe.sc.ui.Renderable.C,k=olympe.sc.ui.Renderable.D,l=new olympe.ui.F.jc(this.na(a));this.C(l,a);const m=this.Ea(olympe.sc.ui.Renderable.$,a,b);var n=this.Ea(olympe.sc.ui.Z.jc.ag,a,b);l.Zj(n);l.uC(this.Ea(olympe.sc.ui.Z.jc.Pb,a,b));const p=this.Ea(olympe.sc.ui.Z.jc.Yc,a,b);l.Ma(olympe.j.$a(l.Ih(),()=>p,()=>m,olympe.j.Color));
|
|
1916
1916
|
const r=this.Ea(olympe.sc.ui.Pd.Ka,a,b);n=this.Ea(olympe.sc.ui.Z.jc.Ls,a,b);l.wC(n);l.vC(this.Ea(olympe.sc.ui.Z.jc.kc,a,b));const t=this.Ea(olympe.sc.ui.Z.jc.gd,a,b);l.Ex(olympe.j.$a(l.Ih(),()=>t,()=>r,b));l.Cf(this.Ea(olympe.sc.ui.Z.jc.qc,a,c));b=this.Ea(olympe.sc.ui.Z.jc.vg,a,olympe.j.aa);n=this.Ea(olympe.sc.ui.Z.jc.Hg,a,olympe.j.aa);l.Yd(this.Ea(e,a,c),b);l.Ed(this.Ea(d,a,c),n);e=this.Ea(e,a,c,olympe.j.ia.pb);c=this.Ea(d,a,c,olympe.j.ia.pb);olympe.j.$a(e,()=>{Yp(this.Ea(f,a,olympe.sc.Br),a,g,olympe.j.Xa([l.na().qa()],
|
|
1917
1917
|
u=>u.valueOf(),Number))});olympe.j.$a(c,()=>{Yp(this.Ea(f,a,olympe.sc.Br),a,k,olympe.j.Xa([l.na().ta()],u=>u.valueOf(),Number))});Uo(a)&&(c=this.Ea(olympe.sc.ui.Pd.O,a,olympe.j.kb,olympe.j.ic('%UNDEFINED%')),l.Jb(olympe.j.Xa([c],u=>olympe.sc.logic.gG.C(this)?u.Rb('%UNDEFINED%')||u.Fi&&u.Fi().valueOf()?olympe.j.ic('%COMPUTED VALUE%'):u:u,olympe.j.kb)));return l}};olympe.sc.ui.Z.jc.U=olympe.dc.Ja.C('01612df3ae3701933b03',olympe.sc.ui.Z.jc);olympe.sc.ui.Z.jc.za=olympe.sc.ui.Z.jc.U.fa('016c8b3713bf8f4db871');
|
|
1918
|
-
olympe.sc.ui.Z.jc.ma=olympe.sc.ui.Z.jc.U.fa('016c8b3713bf8f4db872');olympe.sc.ui.Z.jc.vg=olympe.sc.ui.Z.jc.U.fa('0170ca4983528b9f6bd7');olympe.sc.ui.Z.jc.Hg=olympe.sc.ui.Z.jc.U.fa('0170ca4991f5dcc3a484');olympe.sc.ui.Z.jc
|
|
1918
|
+
olympe.sc.ui.Z.jc.ma=olympe.sc.ui.Z.jc.U.fa('016c8b3713bf8f4db872');olympe.sc.ui.Z.jc.vg=olympe.sc.ui.Z.jc.U.fa('0170ca4983528b9f6bd7');olympe.sc.ui.Z.jc.Hg=olympe.sc.ui.Z.jc.U.fa('0170ca4991f5dcc3a484');olympe.sc.ui.Z.jc.ag=olympe.sc.ui.Z.jc.U.fa('016437688914581fea4d');olympe.sc.ui.Z.jc.Yc=olympe.sc.ui.Z.jc.U.fa('016437688914b03261ce');olympe.sc.ui.Z.jc.Pb=olympe.sc.ui.Z.jc.U.fa('0168997eefed6611afa2');olympe.sc.ui.Z.jc.Ls=olympe.sc.ui.Z.jc.U.fa('016437688914bcb67a39');olympe.sc.ui.Z.jc.gd=olympe.sc.ui.Z.jc.U.fa('016437688914221515ed');
|
|
1919
1919
|
olympe.sc.ui.Z.jc.kc=olympe.sc.ui.Z.jc.U.fa('0168997f731e2170e16e');olympe.sc.ui.Z.jc.qc=olympe.sc.ui.Z.jc.U.fa('0168990cc9a77f2a16b8');olympe.sc.ui.Z.jc.lD=olympe.sc.ui.Z.jc.U.fa('016d3f37610ae4fc3964');olympe.sc.ui.Z.jc.U.C=function(a,b){a=a.create(olympe.sc.ui.Z.jc);b&&(Z(a,olympe.dc.CloudObject.nameProp,b),Z(a,olympe.sc.ui.Pd.O,b));return a.ka()};olympe.sc.ui.Z.jc.prototype.D.K=new olympe.j.J(()=>olympe.ui.F.jc,[]);olympe.sc.ui.Z.He=class extends olympe.sc.ui.Ga{D(a){const b=new olympe.ui.F.He(this.na(a)),c=olympe.j.Xa([b.qA()],d=>d.valueOf(),Boolean);b.Ff(this.O(olympe.sc.ui.Z.He.valueProp,a,Boolean,c));this.C(b,a);b.Ma(olympe.j.$a(b.qA(),()=>this.Ea(olympe.sc.ui.Z.He.za,a,olympe.j.Color),()=>this.Ea(olympe.sc.ui.Renderable.$,a,olympe.j.Color),olympe.j.Color));b.YD().Ld(this.Ea(olympe.sc.ui.Z.He.Oa,a,olympe.j.aa),this.Ea(olympe.sc.ui.Z.He.Ka,a,olympe.j.Color));b.YD().Ma(olympe.j.$a(b.qA(),()=>this.Ea(olympe.sc.ui.Z.He.xb,
|
|
1920
1920
|
a,olympe.j.Color),()=>this.Ea(olympe.sc.ui.Z.He.sb,a,olympe.j.Color),olympe.j.Color));b.Df(this.Ea(olympe.sc.ui.Z.He.O,a,olympe.j.aa,olympe.j.aa.ZERO));rq(a,b,olympe.sc.ui.Z.He.ma,b.Ka.bind(b),b.Ha.bind(b));return b}};olympe.sc.ui.Z.He.U=olympe.dc.Ja.C('0161bce1f151ed95683f',olympe.sc.ui.Z.He);olympe.sc.ui.Z.He.valueProp=olympe.sc.ui.Z.He.U.fa('0161bce236ebb4125ff7');olympe.sc.ui.Z.He.ma=olympe.sc.ui.Z.He.U.fa('0161bce2516b5beb66ee');olympe.sc.ui.Z.He.za=olympe.sc.ui.Z.He.U.fa('016952bd9b2945e0cf2d');
|
|
1921
|
-
olympe.sc.ui.Z.He.Oa=olympe.sc.ui.Z.He.U.fa('016eef124b767b01de0e');olympe.sc.ui.Z.He.Ka=olympe.sc.ui.Z.He.U.fa('016eef2694489f36a6d3');olympe.sc.ui.Z.He.sb=olympe.sc.ui.Z.He.U.fa('016eeb3de5c4036fe1fa');olympe.sc.ui.Z.He.xb=olympe.sc.ui.Z.He.U.fa('016eeb3df78614f0290b');olympe.sc.ui.Z.He.O=olympe.sc.ui.Z.He.U.fa('016eeb5e545fbe43dd7a');olympe.sc.ui.Z.He.U.C=function(a,b){a=a.create(olympe.sc.ui.Z.He);b&&Z(a,olympe.dc.CloudObject.nameProp,b);return a.ka()};olympe.sc.ui.Z.
|
|
1921
|
+
olympe.sc.ui.Z.He.Oa=olympe.sc.ui.Z.He.U.fa('016eef124b767b01de0e');olympe.sc.ui.Z.He.Ka=olympe.sc.ui.Z.He.U.fa('016eef2694489f36a6d3');olympe.sc.ui.Z.He.sb=olympe.sc.ui.Z.He.U.fa('016eeb3de5c4036fe1fa');olympe.sc.ui.Z.He.xb=olympe.sc.ui.Z.He.U.fa('016eeb3df78614f0290b');olympe.sc.ui.Z.He.O=olympe.sc.ui.Z.He.U.fa('016eeb5e545fbe43dd7a');olympe.sc.ui.Z.He.U.C=function(a,b){a=a.create(olympe.sc.ui.Z.He);b&&Z(a,olympe.dc.CloudObject.nameProp,b);return a.ka()};olympe.sc.ui.Z.eg=class extends olympe.sc.ui.Ga{D(a){const b=new Intl.DateTimeFormat(void 0,{month:'long'});var c=this.yg(olympe.sc.ui.Z.eg.ma),d=this.yg(olympe.sc.ui.Z.eg.O);const e=new olympe.ui.F.WF(new olympe.j.ga(c,d),{oZ:(m,n)=>{m.Jb(olympe.j.ic(n.day));m.Ma(olympe.j.$a(n.oq,()=>O(),()=>Dc(),olympe.j.Color));m.Xb(olympe.ui.ha.rc.Sc);m.Ub(olympe.ui.ha.Db.Sb);m.lb(olympe.j.$a(n.oq,()=>zc('dark slate gray',69,90,100,1),()=>olympe.j.$a(n.iE,()=>zc('dark cyan',0,150,136,1),()=>olympe.j.$a(n.fE,()=>
|
|
1922
1922
|
O(),()=>Ac(),olympe.j.Color),olympe.j.Color),olympe.j.Color));m.Bb(olympe.j.$a(n.iE.and(n.oq.Re()),()=>700,()=>400,Number));m.Wb(5)},CX:(m,n,p)=>{m.Jb(olympe.j.Xa([p],r=>olympe.j.ic(b.format(r.nv())),olympe.j.kb)).Bb(800).lb(O());n.Jb(p.getYear().og()).Bb(800).lb(O());m.Xb(olympe.ui.ha.rc.Sc);m.Ub(olympe.ui.ha.Db.Sb);n.Xb(olympe.ui.ha.rc.Sc);n.Ub(olympe.ui.ha.Db.Sb)},tV:(m,n)=>{m.Jb('<'===n?'\uf104':'\uf105').Bb(800).vb('FontAwesome').lb(O()).Xb(olympe.ui.ha.rc.Sc).Ub(olympe.ui.ha.Db.Sb)},vZ:(m,n)=>
|
|
1923
|
-
{m.Jb('Mo Tu We Th Fr Sa Su'.split(' ')[n]);m.lb(O());m.Xb(olympe.ui.ha.rc.Sc);m.Ub(olympe.ui.ha.Db.Sb)}});e.Ma(olympe.j.Color.create(69,90,100));d=olympe.j.Qa(olympe.j.ac.now());e.Wx(d);e.$A(d);olympe.j.Wa([this.Ea(olympe.sc.ui.Z.
|
|
1923
|
+
{m.Jb('Mo Tu We Th Fr Sa Su'.split(' ')[n]);m.lb(O());m.Xb(olympe.ui.ha.rc.Sc);m.Ub(olympe.ui.ha.Db.Sb)}});e.Ma(olympe.j.Color.create(69,90,100));d=olympe.j.Qa(olympe.j.ac.now());e.Wx(d);e.$A(d);olympe.j.Wa([this.Ea(olympe.sc.ui.Z.eg.za,a,olympe.j.kb)],m=>{'DD.MM.YYYY'!==m.valueOf()&&this.V.warn('[DatePicker] Using custom format is no longer supported! Date will be formatted as DD.MM.YYYY!')});d=this.O(olympe.sc.ui.Z.eg.valueProp,a,String,olympe.j.Xa([e.zA()],m=>m.mp().valueOf(),String),olympe.j.ac.now().mp().valueOf());
|
|
1924
1924
|
olympe.j.Wa([d],m=>{const n=sc(m),p=olympe.j.Qa(e.zA());n&&n.an().valueOf()&&!p.mp().Rb(m)&&(e.Wx(n),e.$A(n))});e.Wb(5);const f=olympe.j.Za(olympe.j.ia);f.update(olympe.j.ia.pb);d=new olympe.ui.F.Zd(40,8);const g=(new olympe.ui.F.Mb(new olympe.j.ga(140,40))).Jb(e.zA().mp()).Bg('default');g.fj(()=>{const m=sc(olympe.j.Qa(g.Lj()));m&&m.an().valueOf()&&(e.Wx(m),e.$A(m))});var k=(new olympe.ui.F.jc(new olympe.j.ga(60,40))).Jb('\uf073').vb('FontAwesome').Bg('default');let l;k.Vc(()=>{const m=olympe.j.Qa(f.wa()).valueOf(),
|
|
1925
|
-
n=olympe.ui.Na.hf();m?(l&&(n.Pj(l.valueOf()),l=void 0),f.update(olympe.j.ia.pb)):(l=n.Vc(()=>{f.update(olympe.j.ia.pb);n.Pj(l.valueOf());l=void 0}),f.update(olympe.j.ia.C))});d.appendChild(g,'datepicker input');d.appendChild(k,'datepicker toggle');c=new olympe.ui.F.xd(c,0,8);c.appendChild(e,'calendar widget');k=new olympe.ui.F.
|
|
1926
|
-
olympe.sc.ui.Z.
|
|
1927
|
-
olympe.sc.ui.Z.
|
|
1928
|
-
a,olympe.j.kb)));this.C(e.ob,a);e.$O(this.Ea(olympe.sc.ui.Z.od
|
|
1929
|
-
olympe.j.ia,e.BO(),olympe.j.ia.pb);a.on(olympe.sc.ui.Z.od.ma,g=>{e.cP(g)},this);const f=this.Ea(olympe.sc.ui.Z.od.za,a,olympe.dc.CloudObject);e.ma.forEach((g,k)=>{olympe.j.$a(olympe.j.Xa([f,g],(l,m)=>olympe.j.hc(l.ka&&l.ka()===m.ka()),olympe.j.ia),()=>e.qP(k))});rq(a,e,olympe.sc.ui.Z.od.lD,e
|
|
1930
|
-
olympe.sc.ui.Z.od.za=olympe.sc.ui.Z.od.U.fa('01646b41d4fb284e88c4');olympe.sc.ui.Z.od.Pb=olympe.sc.ui.Z.od.U.fa('016dca2998c1f20c3c6e');olympe.sc.ui.Z.od.Hg=olympe.sc.ui.Z.od.U.fa('016edaa40fdb543d0176');olympe.sc.ui.Z.od.gd=olympe.sc.ui.Z.od.U.fa('016edacf08785409c410');olympe.sc.ui.Z.od.vg=olympe.sc.ui.Z.od.U.fa('016edb1bc5fb269bfce8');olympe.sc.ui.Z.od.Yc=olympe.sc.ui.Z.od.U.fa('016edb1bcff460c08af3');olympe.sc.ui.Z.od
|
|
1925
|
+
n=olympe.ui.Na.hf();m?(l&&(n.Pj(l.valueOf()),l=void 0),f.update(olympe.j.ia.pb)):(l=n.Vc(()=>{f.update(olympe.j.ia.pb);n.Pj(l.valueOf());l=void 0}),f.update(olympe.j.ia.C))});d.appendChild(g,'datepicker input');d.appendChild(k,'datepicker toggle');c=new olympe.ui.F.xd(c,0,8);c.appendChild(e,'calendar widget');k=new olympe.ui.F.hg(c.na(),!1,null,'floating');k.Sk(f.wa());k.Nd(c);k.Ew(d,olympe.ui.F.hg.D.Sc,olympe.ui.F.hg.O.wy);this.C(d,a);return d}};
|
|
1926
|
+
olympe.sc.ui.Z.eg.U=olympe.dc.Ja.C('01719cda197c37ff5018',olympe.sc.ui.Z.eg);olympe.sc.ui.Z.eg.valueProp=olympe.sc.ui.Z.eg.U.fa('01719cdb1c36b870db0d');olympe.sc.ui.Z.eg.za=olympe.sc.ui.Z.eg.U.fa('01611e3015371b459ce8');olympe.sc.ui.Z.eg.ma=olympe.sc.ui.Z.eg.U.fa('01611e3015371b459cf9');olympe.sc.ui.Z.eg.O=olympe.sc.ui.Z.eg.U.fa('01611e3015371b459cd5');
|
|
1927
|
+
olympe.sc.ui.Z.eg.U.C=(a,b)=>{a=a.create(olympe.sc.ui.Z.eg);Z(a,olympe.dc.CloudObject.nameProp,b);Z(a,olympe.sc.ui.Z.eg.za,'DD.MM.YYYY');Z(a,olympe.sc.ui.Z.eg.valueProp,olympe.j.ac.now().mp());Z(a,olympe.sc.ui.Z.eg.ma,250);Z(a,olympe.sc.ui.Z.eg.O,250);Z(a,olympe.sc.ui.Renderable.C,olympe.j.Ba(250));Z(a,olympe.sc.ui.Renderable.D,olympe.j.Ba(40));return a.ka()};olympe.sc.ui.Z.od=class extends olympe.sc.ui.Pd{D(a){const b=this.Ea(olympe.sc.ui.Z.od.qc,a,olympe.j.Kk),c=this.Ea(olympe.sc.ui.Z.od.kc,a,olympe.sc.logic.Function,null),d=this.na(a),e=new olympe.ui.F.od(d,b,{render:(g,k)=>{const l=new olympe.ui.F.cb(k);l.Fc(5);this.C(l,a);olympe.j.Wa([c,g],(m,n)=>{if(null===m)l.Jb('');else{const p=a.wo('dropdown_renderer'),[r]=m.getInputs(),[t]=m.getOutputs();p.set(r,n);m.run(p);l.Jb(p.wa(t,String,!0))}});return l},getType:()=>olympe.dc.CloudObject});e.Kc(10);e.Og(olympe.j.kb.cD.bA(this.Ea(olympe.sc.ui.Z.od.Pb,
|
|
1928
|
+
a,olympe.j.kb)));this.C(e.ob,a);e.$O(this.Ea(olympe.sc.ui.Z.od.ag,a,olympe.j.ia,olympe.j.ia.pb));e.iP(d.ta().Ua(2).vn(this.Ea(olympe.sc.ui.Z.od.Ls,a,olympe.j.aa,olympe.j.aa.ZERO)));e.YO(this.Ea(olympe.sc.ui.Z.od.Hg,a,olympe.j.aa,olympe.j.Ba(10)));e.yC(new olympe.j.ga(this.Ea(olympe.sc.ui.Z.od.vg,a,olympe.j.aa),this.Ea(olympe.sc.ui.Z.od.Yc,a,olympe.j.aa)));e.zC(this.Ea(olympe.sc.ui.Z.od.gd,a,olympe.j.kb));this.C(e,a);olympe.j.cg(e.T,g=>{a.set(olympe.sc.ui.Z.od.za,g)});this.O(olympe.sc.ui.Z.od.ma,a,
|
|
1929
|
+
olympe.j.ia,e.BO(),olympe.j.ia.pb);a.on(olympe.sc.ui.Z.od.ma,g=>{e.cP(g)},this);const f=this.Ea(olympe.sc.ui.Z.od.za,a,olympe.dc.CloudObject);e.ma.forEach((g,k)=>{olympe.j.$a(olympe.j.Xa([f,g],(l,m)=>olympe.j.hc(l.ka&&l.ka()===m.ka()),olympe.j.ia),()=>e.qP(k))});rq(a,e,olympe.sc.ui.Z.od.lD,e.ag.bind(e),e.lg.bind(e));return e}};olympe.sc.ui.Z.od.U=olympe.dc.Ja.C('01646ac1cbb34f2ae625',olympe.sc.ui.Z.od);olympe.sc.ui.Z.od.qc=olympe.sc.ui.Z.od.U.fa('01646ac1ce7698272467');olympe.sc.ui.Z.od.kc=olympe.sc.ui.Z.od.U.fa('01646ac1cf8521b01aba');
|
|
1930
|
+
olympe.sc.ui.Z.od.za=olympe.sc.ui.Z.od.U.fa('01646b41d4fb284e88c4');olympe.sc.ui.Z.od.Pb=olympe.sc.ui.Z.od.U.fa('016dca2998c1f20c3c6e');olympe.sc.ui.Z.od.Hg=olympe.sc.ui.Z.od.U.fa('016edaa40fdb543d0176');olympe.sc.ui.Z.od.gd=olympe.sc.ui.Z.od.U.fa('016edacf08785409c410');olympe.sc.ui.Z.od.vg=olympe.sc.ui.Z.od.U.fa('016edb1bc5fb269bfce8');olympe.sc.ui.Z.od.Yc=olympe.sc.ui.Z.od.U.fa('016edb1bcff460c08af3');olympe.sc.ui.Z.od.ag=olympe.sc.ui.Z.od.U.fa('016edb8f1f3e173ffa3e');olympe.sc.ui.Z.od.Ls=olympe.sc.ui.Z.od.U.fa('016edbc49fa2c9ef9e8d');
|
|
1931
1931
|
olympe.sc.ui.Z.od.ma=olympe.sc.ui.Z.od.U.fa('016eda7c30ccd9936f6d');olympe.sc.ui.Z.od.lD=olympe.sc.ui.Z.od.U.fa('0165cdf57056f7394839');olympe.sc.ui.Z.Ie=class extends olympe.sc.ui.Ga{D(a){const b=new olympe.ui.F.Ie(this.na(a));b.zs(!0);Rf(b,c=>{const d=Fn(),e=[];for(const f of c){c=f.bx().valueOf();const g=olympe.sc.JW(c);c=olympe.dm.File.D(g,d,f.Zy().valueOf(),f.Pe(),c);e.push(c)}d.Kd(f=>{f?(a.set(olympe.sc.ui.Z.Ie.O,e.map(olympe.dc.CloudObject.get)),a.Qq(olympe.sc.ui.Z.Ie.ma)):this.V.warn('The application encountered a problem while uploading files. The transaction failed.')})});this.C(b,a);return b}};
|
|
1932
|
-
olympe.sc.ui.Z.Ie.U=olympe.dc.Ja.C('0165cd420a0ddfa948a2',olympe.sc.ui.Z.Ie);olympe.sc.ui.Z.Ie.O=olympe.sc.ui.Z.Ie.U.fa('0165cd42349c06193ae4');olympe.sc.ui.Z.Ie.ma=olympe.sc.ui.Z.Ie.U.fa('0165cd424c8ac11a98ba');olympe.sc.ui.Z.Image=class extends olympe.sc.ui.Ga{D(a){const b=new olympe.ui.F.
|
|
1932
|
+
olympe.sc.ui.Z.Ie.U=olympe.dc.Ja.C('0165cd420a0ddfa948a2',olympe.sc.ui.Z.Ie);olympe.sc.ui.Z.Ie.O=olympe.sc.ui.Z.Ie.U.fa('0165cd42349c06193ae4');olympe.sc.ui.Z.Ie.ma=olympe.sc.ui.Z.Ie.U.fa('0165cd424c8ac11a98ba');olympe.sc.ui.Z.Image=class extends olympe.sc.ui.Ga{D(a){const b=new olympe.ui.F.ye(this.na(a));this.C(b,a);const c=olympe.dc.CloudObject.get('016eb13ba1388f7bdd71');b.us(olympe.j.Xa([this.Ea(olympe.sc.ui.Z.Image.xb,a,olympe.sc.Xn,c)],d=>{d instanceof olympe.sc.ri&&(d=d.C());if(d instanceof olympe.sc.Xn)return d.D();if('string'===typeof d||d instanceof olympe.j.kb)return olympe.j.ic(d);this.V.warn('Image: cannot set value as background image source',d);return olympe.j.kb.EMPTY},olympe.j.kb));b.Lq(this.Ea(olympe.sc.ui.Z.Image.O,
|
|
1933
1933
|
a,olympe.j.kb));b.kp(this.Ea(olympe.sc.ui.Z.Image.Ka,a,olympe.j.kb));b.rs(new olympe.j.ga(this.Ea(olympe.sc.ui.Z.Image.ma,a,olympe.j.aa),this.Ea(olympe.sc.ui.Z.Image.za,a,olympe.j.aa)));b.ss(new olympe.j.ga(this.Ea(olympe.sc.ui.Z.Image.Oa,a,olympe.j.aa),this.Ea(olympe.sc.ui.Z.Image.sb,a,olympe.j.aa)));return b}};olympe.sc.ui.Z.Image.U=olympe.dc.Ja.C('0162f1bd4db6b5603fd8',olympe.sc.ui.Z.Image);olympe.sc.ui.Z.Image.xb=olympe.sc.ui.Z.Image.U.fa('01642664ca2b59d1a196');olympe.sc.ui.Z.Image.ma=olympe.sc.ui.Z.Image.U.fa('01642664d2bc3e1478f4');
|
|
1934
1934
|
olympe.sc.ui.Z.Image.za=olympe.sc.ui.Z.Image.U.fa('01642664d44038c8eac1');olympe.sc.ui.Z.Image.Oa=olympe.sc.ui.Z.Image.U.fa('016426668f80d9bf7693');olympe.sc.ui.Z.Image.sb=olympe.sc.ui.Z.Image.U.fa('016426669197f66aef82');olympe.sc.ui.Z.Image.O=olympe.sc.ui.Z.Image.U.fa('01642664d0eb249710d2');olympe.sc.ui.Z.Image.Ka=olympe.sc.ui.Z.Image.U.fa('01642664d5baa65fdfc5');
|
|
1935
1935
|
olympe.sc.ui.Z.Image.U.C=function(a,b){a=a.create(olympe.sc.ui.Z.Image);Z(a,olympe.dc.CloudObject.nameProp,b);Z(a,olympe.sc.ui.Z.Image.ma,0);Z(a,olympe.sc.ui.Z.Image.za,0);Z(a,olympe.sc.ui.Z.Image.Oa,0);Z(a,olympe.sc.ui.Z.Image.sb,0);Z(a,olympe.sc.ui.Z.Image.O,'center');Z(a,olympe.sc.ui.Z.Image.Ka,'contain');return a.ka()};
|
|
@@ -1946,13 +1946,13 @@ olympe.sc.ui.Z.Be.O=olympe.sc.ui.Z.Be.U.fa('01633eda39772493a535');olympe.sc.ui.
|
|
|
1946
1946
|
olympe.sc.ui.Z.Be.U.C=function(a,b){const c=a.create(olympe.sc.ui.Z.Be);Z(c,olympe.dc.CloudObject.nameProp,b);Z(c,olympe.sc.ui.Renderable.C,200);Z(c,olympe.sc.ui.Renderable.D,400);b=olympe.dc.CloudObject.yf(a,olympe.sc.ui.Uv,'Item Renderer',!0);const d=olympe.dc.CloudObject.yf(a,b,'item renderer');Z(c,olympe.sc.ui.Z.Be.O,new olympe.dc.Kf(d));a.Qb(olympe.sc.Runnable.ca,d,b);a.Qb(olympe.sc.Runnable.W,d,b);a.Qb(olympe.dc.CloudObject.containsRel,c,b);return c.ka()};olympe.sc.ui.Z.$n=class extends olympe.sc.ui.ec{D(a){return super.D(a)}};olympe.sc.ui.Z.$n.U=olympe.dc.Ja.C('016995c9f3cd1db60dc7',olympe.sc.ui.Z.$n);olympe.sc.ui.Z.$n.ma=olympe.sc.ui.Z.$n.U.fa('016343f1676b2cb4ad06');olympe.sc.ui.Z.$n.O=olympe.sc.ui.Z.$n.U.fa('016343f1676b131af556');olympe.sc.ui.Z.Map=class extends olympe.sc.ui.Ga{D(a){const b=new olympe.ui.Ta.Va.Map(this.na(a));this.C(b,a);b.pv(this.Ea(olympe.sc.ui.Z.Map.Ka,a,olympe.j.kb),this.Ea(olympe.sc.ui.Z.Map.za,a,olympe.j.kb));b.ys(this.O(olympe.sc.ui.Z.Map.ma,a,olympe.j.aa,b.WD()));b.xs(this.O(olympe.sc.ui.Z.Map.O,a,olympe.j.aa,b.UD()));b.Is(this.O(olympe.sc.ui.Z.Map.Oa,a,olympe.j.aa,b.R()));const c=this.Ea(olympe.sc.ui.Z.Map.sb,a,olympe.sc.logic.Function,null);olympe.j.Wa([this.Ea(olympe.sc.ui.Z.Map.xb,a,olympe.j.Ug)],
|
|
1947
1947
|
d=>{d&&d.forEach&&d.forEach((e,f)=>{olympe.j.Wa([c],g=>{if(null===g)b.ps(f);else{const k=a.wo('object_to_marker'),[l]=g.getInputs(),[m,n]=g.getOutputs();k.set(l,e);g.run(k);olympe.j.Wa([k.wa(n,Number,!0),k.wa(m,Number,!0)],(p,r)=>b.au(p,r,f))}});olympe.j.yb().Ve(()=>b.ps(f))})});return b}};olympe.sc.ui.Z.Map.U=olympe.dc.Ja.C('016426b17399ffc56c99',olympe.sc.ui.Z.Map);olympe.sc.ui.Z.Map.za=olympe.sc.ui.Z.Map.U.fa('016427a99e367fa6c09d');olympe.sc.ui.Z.Map.Eb=olympe.sc.ui.Z.Map.U.fa('01766b9dcec160a517e1');
|
|
1948
1948
|
olympe.sc.ui.Z.Map.ma=olympe.sc.ui.Z.Map.U.fa('016427a9b97eea350e50');olympe.sc.ui.Z.Map.O=olympe.sc.ui.Z.Map.U.fa('016427a9cfb705df606e');olympe.sc.ui.Z.Map.Oa=olympe.sc.ui.Z.Map.U.fa('016427a9e5efd39a5071');olympe.sc.ui.Z.Map.Ka=olympe.sc.ui.Z.Map.U.fa('016436f8c0383becf392');olympe.sc.ui.Z.Map.xb=olympe.sc.ui.Z.Map.U.fa('0164378b2cebf5cc6b6b');olympe.sc.ui.Z.Map.sb=olympe.sc.ui.Z.Map.U.fa('0168ec49fe6e55ebe510');
|
|
1949
|
-
olympe.sc.ui.Z.Map.U.C=(a,b)=>{a=a.create(olympe.sc.ui.Z.Map);Z(a,olympe.dc.CloudObject.nameProp,b);Z(a,olympe.sc.ui.Z.Map.Ka,olympe.N.Ta.Va.Map.C.zJ);Z(a,olympe.sc.ui.Z.Map.za,'streets-v11');Z(a,olympe.sc.ui.Z.Map.O,46.5);Z(a,olympe.sc.ui.Z.Map.ma,6.5);Z(a,olympe.sc.ui.Z.Map.Oa,10);Z(a,olympe.sc.ui.Renderable.C,500);Z(a,olympe.sc.ui.Renderable.D,500);return a.ka()};olympe.sc.ui.Z.
|
|
1949
|
+
olympe.sc.ui.Z.Map.U.C=(a,b)=>{a=a.create(olympe.sc.ui.Z.Map);Z(a,olympe.dc.CloudObject.nameProp,b);Z(a,olympe.sc.ui.Z.Map.Ka,olympe.N.Ta.Va.Map.C.zJ);Z(a,olympe.sc.ui.Z.Map.za,'streets-v11');Z(a,olympe.sc.ui.Z.Map.O,46.5);Z(a,olympe.sc.ui.Z.Map.ma,6.5);Z(a,olympe.sc.ui.Z.Map.Oa,10);Z(a,olympe.sc.ui.Renderable.C,500);Z(a,olympe.sc.ui.Renderable.D,500);return a.ka()};olympe.sc.ui.Z.ye=class extends olympe.sc.ui.Ga{D(a){const b=new olympe.ui.F.ye(this.na(a));this.C(b,a);return b}};olympe.sc.ui.Z.ye.U=olympe.dc.Ja.C('01646f6a3fa5615a5bd1',olympe.sc.ui.Z.ye);olympe.sc.ui.Z.ye.U.C=function(a,b){a=a.create(olympe.sc.ui.Z.ye);Z(a,olympe.dc.CloudObject.nameProp,b);return a.ka()};function Gq(a,b){if(Uo(b))b.set(olympe.sc.Hb.C.vp,Hq(a,b));else{var c=a.na(b),d=new olympe.ui.F.Xe(c),e=a.Qe(),f=a.Ea(olympe.sc.ui.Z.fl.O,b,olympe.sc.ui.Screen),g=Vo(b),k=new Set;Iq(a,g,()=>{a.Pa?Jq(a,e,k,g,()=>{Kq(e,f,b)}):Kq(e,f,b)});var l=olympe.j.yb(),m=olympe.j.Za(olympe.sc.ui.Screen,'Screenflow loaded screen');Lq(e,g,()=>{olympe.j.Wa([m],p=>{Mq(p,b)})});olympe.j.Wa([f],p=>{k.has(p.ka())?m.update(p):l.run(()=>Nq(p,g,()=>{k.add(p.ka());olympe.dc.Ya(f)===p.ka()?m.update(p):a.V.warn(`The selected screen ${olympe.dc.Ya(f)} has changed while the loading of another one ${p.ka()}`)}))},
|
|
1950
1950
|
'Screenflow process screen change');var n=null;olympe.j.Wa([m],p=>{const r=Ro(b,p);n&&n.destroy();n=r;p.run(r);xq(c,r);r.qB(olympe.sc.Hb.C.vp).then(t=>{d.appendChild(t,'screen');b.set(olympe.sc.Hb.C.vp,d)}).catch(()=>a.V.warn(`Screen ${p.ka()} has not been rendered.`));olympe.j.yb().Ve(()=>{r.destroy()})},'Screenflow render loaded screen')}}
|
|
1951
1951
|
function Hq(a,b){const c=a.na(b),d=new olympe.ui.F.Xe(c);a.C(d,b);a=new olympe.ui.F.cb(c);a.Ld(1,N());a.Xb(olympe.ui.ha.rc.Sc);a.Ub(olympe.ui.ha.Db.Sb);a.Jb('Screenflow');a.rb(c.qa().hb(.1));a.ng(.5);d.appendChild(a,'label');return d}function Iq(a,b,c){const d=olympe.j.yb();olympe.dc.nb.from(a.Qe()).Zi().oc(olympe.sc.ui.ll.C,!0).back().oc(olympe.sc.yc.T,!0).oc(olympe.sc.Runnable.ca,!0).observe(d,{Xg:Oq(b)}).subscribe(d.re(()=>null==c?void 0:c()))}
|
|
1952
1952
|
function Jq(a,b,c,d,e){b=olympe.dc.nb.from(b).oc(olympe.sc.yc.T).zf();const f=olympe.j.yb(),g=new olympe.async.fL(f);b.forEach(k=>{g.add(l=>Nq(k,d,()=>{c.add(k.ka());f.run(l)}))});rd(g,(k,l)=>{!k&&a.V.error(`Error while downloading some screen data: ${l}`);e()});g.start()}
|
|
1953
|
-
function Kq(a,b,c){let d;void 0===olympe.j.Qa(b)&&(d=a.ml(olympe.sc.ui.ll.C).zf())&&c.set(olympe.sc.ui.Z.fl.O,d);a.oc(olympe.sc.ui.ll.C).observe(olympe.j.yb(),{
|
|
1953
|
+
function Kq(a,b,c){let d;void 0===olympe.j.Qa(b)&&(d=a.ml(olympe.sc.ui.ll.C).zf())&&c.set(olympe.sc.ui.Z.fl.O,d);a.oc(olympe.sc.ui.ll.C).observe(olympe.j.yb(),{jg:!0}).pipe(rxjs.operators.skip(d?1:0)).subscribe(e=>{c.set(olympe.sc.ui.Z.fl.O,e.Vd())})}
|
|
1954
1954
|
function Lq(a,b,c){const d=olympe.j.yb();olympe.dc.nb.from(a).Zi().oc(olympe.sc.yc.T,!0).oc(olympe.sc.ui.ef.C.fe(),!0).oc(olympe.sc.ui.ef.O,!0).back().oc(olympe.sc.ui.ef.R,!0).back().oc(olympe.sc.ui.ef.D,!0).observe(d,{Xg:Oq(b),Nr:'__code-as-data__'}).subscribe(()=>null==c?void 0:c())}
|
|
1955
|
-
function Mq(a,b){const c=olympe.j.yb(),d=new Map,e=a.ka();a.oc(olympe.sc.ui.ef.C.fe()).observe(c,{
|
|
1955
|
+
function Mq(a,b){const c=olympe.j.yb(),d=new Map,e=a.ka();a.oc(olympe.sc.ui.ef.C.fe()).observe(c,{jg:!0}).subscribe(f=>{f.lu().forEach(g=>{const k=g.nA(),l=g.CA();if(e!==(null==l?void 0:l.ka())){var m=new olympe.j.ee('',c);d.set(g.ka(),m);m.run(()=>{const n=Ro(b,e);olympe.j.Wa([g.lA()],p=>{n.on(p,()=>{Ro(b,l);const r=Aq(g,n);b.set('MAP_PROPS',r);b.set(olympe.sc.ui.Z.fl.O,l)},k)})})}});f.uu().forEach(g=>{let k;null==(k=d.get(g))||k.destroy();d.delete(g)})})}
|
|
1956
1956
|
function Nq(a,b,c){const d=olympe.j.yb();olympe.dc.nb.af(d,a,olympe.dc.Te.Wi,void 0,{Xg:Oq(b),kB:!0}).subscribe(()=>null==c?void 0:c())}function Oq(a){return a?olympe.dc.nb.Jf.Qp:olympe.dc.nb.Jf.cm}olympe.sc.ui.Z.fl=class extends olympe.sc.ui.Ga{constructor(a,b,c,d){super(a,b);this.Pa=d}update(a){Gq(this,a)}R(){return(new olympe.dc.Mp(this)).GM().me([olympe.sc.ui.Screen]).ek()}};olympe.sc.ui.Z.fl.U=olympe.dc.Ja.C('0163f87334925ee199c4',olympe.sc.ui.Z.fl,olympe.xa.ba.Ob,new olympe.sa.zb(olympe.Fa.pa.mz));
|
|
1957
1957
|
olympe.sc.ui.Z.fl.O=olympe.sc.ui.Z.fl.U.fa('016e608cbdeab7a480ce');olympe.sc.ui.Z.Id=class extends olympe.sc.ui.Ga{D(a){var b=this.Ea(olympe.sc.ui.Z.Id.Oa,a,olympe.j.aa);const c=this.Ea(olympe.sc.ui.Z.Id.Ka,a,olympe.j.aa),d=this.Ea(olympe.sc.ui.Z.Id.O,a,olympe.j.aa);b=new olympe.ui.F.Id(this.na(a),b,c,d);b.Ff(this.O(olympe.sc.ui.Z.Id.valueProp,a,Number,olympe.j.Xa([b.getValue()],e=>e.valueOf(),Number)));this.C(b,a);b.hP(this.Ea(olympe.sc.ui.Z.Id.ma,a,olympe.j.Color));b.Lh(this.Ea(olympe.sc.ui.Z.Id.za,a,olympe.j.aa));b.tP(this.Ea(olympe.sc.ui.Z.Id.kc,a,olympe.j.Color));
|
|
1958
1958
|
b.vP(this.Ea(olympe.sc.ui.Z.Id.Eb,a,olympe.j.Color));b.sP(this.Ea(olympe.sc.ui.Z.Id.Pb,a,olympe.j.aa));b.rP(this.Ea(olympe.sc.ui.Z.Id.qc,a,olympe.j.Color));b.uP(this.Ea(olympe.sc.ui.Z.Id.xb,a,olympe.j.Color));rq(a,b,olympe.sc.ui.Z.Id.sb,b.NO.bind(b),b.JO.bind(b));return b}};olympe.sc.ui.Z.Id.U=olympe.dc.Ja.C('0163df0bbf0d8c8ca7d3',olympe.sc.ui.Z.Id);olympe.sc.ui.Z.Id.valueProp=olympe.sc.ui.Z.Id.U.fa('0163df0bc2f7d39a2396');olympe.sc.ui.Z.Id.Oa=olympe.sc.ui.Z.Id.U.fa('0163df0bc9635729e324');
|
|
@@ -1965,48 +1965,48 @@ function Qq(a,b,c,d,e){var f=olympe.sc.ui.ec.T,g=olympe.sc.ui.Renderable.C,k=oly
|
|
|
1965
1965
|
r(l,d.qa());r(g,p,a);r(k,b,n)}olympe.sc.ui.Lb.fk=class extends olympe.sc.ui.mr{qs(){}D(){}C(){}};olympe.sc.ui.Lb.fk.D={Jy:'distributed',Uf:'manual'};olympe.sc.ui.Lb.Xe=class extends olympe.sc.ui.mr{qs(a,b){const c=olympe.j.aa,d=olympe.sc.ui.Ga.QX,e=new olympe.j.ga(this.Ea(olympe.sc.ui.Renderable.C,a,c,c.ZERO,!0),this.Ea(olympe.sc.ui.Renderable.D,a,c,c.ZERO,!0)),f=new olympe.ui.F.Xe(e);b.forEach((g,k,l)=>{const m=g.ka(),n=Ro(a,m);olympe.j.ls([n.wa(olympe.sc.Hb.C.vp,olympe.ui.F.mb,!0)],p=>{p.setPosition(g.ae(n));p.ah(g.Ea(d,n,c,c.ZERO));f.appendChild(p,m+'_'+this.db.name(m));p.Cs(l.gf(k))})});return f}D(){return olympe.j.ia.pb}C(){return olympe.j.ia.pb}};
|
|
1966
1966
|
olympe.sc.ui.Lb.Xe.U=olympe.dc.Ja.C('016c2458e07561155a49',olympe.sc.ui.Lb.Xe);olympe.sc.ui.Lb.Zd=class extends olympe.sc.ui.Lb.fk{qs(a,b){var c=olympe.j.kb,d=olympe.j.aa;const e=olympe.j.ga,f=olympe.ui.F.Zd;var g=olympe.ui.ha.rc.Sc;const k=olympe.sc.ui.Lb.fk.D.Uf,l=olympe.sc.ui.Lb.fk.D.Jy,m=olympe.sc.ui.Lb.Zd.R,n=olympe.sc.ui.Lb.Zd.da;var p=olympe.sc.ui.Lb.Zd.$,r=olympe.sc.ui.Lb.Zd.T,t=this.Ea(olympe.sc.ui.Renderable.C,a,d,d.ZERO,!0);const u=this.Ea(olympe.sc.ui.Renderable.D,a,d,d.ZERO,!0);p=this.Ea(p,a,d,d.ZERO,!0);g=this.Ea(n,a,c,g,!0);c=this.Ea(m,a,c,k,!0);r=this.Ea(r,a,
|
|
1967
1967
|
d,olympe.j.Ba(-1),!0);t=olympe.j.Xa([c,t,b.Qc(),p],(v,w,x,y)=>olympe.j.Ba(v.valueOf()===l&&0<x?(w-(x-1)*y)/x:-1),olympe.j.aa);d=new f(u,p,d.ZERO,d.ZERO);Rq(this,d,a,b,new e(t,r),g);return d}D(a){const b=olympe.sc.ui.Lb.fk.D.Jy;return this.Ea(olympe.sc.ui.Lb.Zd.R,a,olympe.j.kb,olympe.sc.ui.Lb.fk.D.Uf).Se(b)}C(a){return this.Ea(olympe.sc.ui.Lb.Zd.T,a,olympe.j.aa,olympe.j.Ba(-1)).Mj(-1)}};olympe.sc.ui.Lb.Zd.U=olympe.dc.Ja.C('016c2464cd56eb1d285e',olympe.sc.ui.Lb.Zd);olympe.sc.ui.Lb.Zd.da=olympe.sc.ui.Lb.Zd.U.fa('016c2465994ea70d575b');
|
|
1968
|
-
olympe.sc.ui.Lb.Zd.R=olympe.sc.ui.Lb.Zd.U.fa('016c2465d49a1b57c37b');olympe.sc.ui.Lb.Zd.$=olympe.sc.ui.Lb.Zd.U.fa('016c24662dd291131b36');olympe.sc.ui.Lb.Zd.T=olympe.sc.ui.Lb.Zd.U.fa('016c246628ec25819a59');olympe.sc.ui.Lb.Zd.U.C=a=>{const b=a.create(olympe.sc.ui.Lb.Zd);a.Qb(olympe.sc.
|
|
1968
|
+
olympe.sc.ui.Lb.Zd.R=olympe.sc.ui.Lb.Zd.U.fa('016c2465d49a1b57c37b');olympe.sc.ui.Lb.Zd.$=olympe.sc.ui.Lb.Zd.U.fa('016c24662dd291131b36');olympe.sc.ui.Lb.Zd.T=olympe.sc.ui.Lb.Zd.U.fa('016c246628ec25819a59');olympe.sc.ui.Lb.Zd.U.C=a=>{const b=a.create(olympe.sc.ui.Lb.Zd);a.Qb(olympe.sc.gg.C,b,olympe.sc.ui.ec.R);a.Qb(olympe.sc.gg.C,b,olympe.sc.ui.ec.T);return b.ka()};olympe.sc.ui.Lb.Hf=class extends olympe.sc.ui.Lb.fk{qs(a,b){var c=olympe.j.aa,d=olympe.j.ia;const e=olympe.j.ga;var f=olympe.ui.F.Hf,g=olympe.sc.ui.Lb.Hf.R,k=olympe.sc.ui.Lb.Hf.$,l=olympe.sc.ui.Lb.Hf.ma;const m=olympe.sc.ui.Lb.Hf.da,n=olympe.sc.ui.Lb.Hf.T,p=this.Ea(olympe.sc.ui.Renderable.C,a,c,c.ZERO,!0),r=this.Ea(olympe.sc.ui.Renderable.D,a,c,c.ZERO,!0);g=this.Ea(g,a,c,olympe.j.Ba(50),!0);k=this.Ea(k,a,c,c.ZERO,!0);l=this.Ea(l,a,c,c.ZERO,!0);c=this.Ea(m,a,c,c.ZERO,!0);d=this.Ea(n,a,d,d.pb,!0);f=
|
|
1969
1969
|
new f(p,r,g,k,l,c);f.aP(d);Rq(this,f,a,b,new e(g,-1));return f}D(a){return this.Ea(olympe.sc.ui.Lb.Hf.R,a,olympe.j.aa,olympe.j.Ba(50)).Mj(-1)}C(){return olympe.j.ia.pb}};olympe.sc.ui.Lb.Hf.U=olympe.dc.Ja.C('016c2466cfdfb79fda99',olympe.sc.ui.Lb.Hf);olympe.sc.ui.Lb.Hf.R=olympe.sc.ui.Lb.Hf.U.fa('016c24674d58a6863271');olympe.sc.ui.Lb.Hf.$=olympe.sc.ui.Lb.Hf.U.fa('016c24679171effcf472');olympe.sc.ui.Lb.Hf.ma=olympe.sc.ui.Lb.Hf.U.fa('016c2467dd3812adac6e');olympe.sc.ui.Lb.Hf.da=olympe.sc.ui.Lb.Hf.U.fa('016c2467fa3c2444dfec');
|
|
1970
|
-
olympe.sc.ui.Lb.Hf.T=olympe.sc.ui.Lb.Hf.U.fa('016c24680a7ae4f6964c');olympe.sc.ui.Lb.Hf.za=olympe.sc.ui.Lb.Hf.U.fa('016c2468a81749b0dea5');olympe.sc.ui.Lb.Hf.U.C=a=>{const b=a.create(olympe.sc.ui.Lb.Hf);a.Qb(olympe.sc.
|
|
1970
|
+
olympe.sc.ui.Lb.Hf.T=olympe.sc.ui.Lb.Hf.U.fa('016c24680a7ae4f6964c');olympe.sc.ui.Lb.Hf.za=olympe.sc.ui.Lb.Hf.U.fa('016c2468a81749b0dea5');olympe.sc.ui.Lb.Hf.U.C=a=>{const b=a.create(olympe.sc.ui.Lb.Hf);a.Qb(olympe.sc.gg.C,b,olympe.sc.ui.ec.R);a.Qb(olympe.sc.gg.C,b,olympe.sc.ui.ec.T);a.Qb(olympe.sc.gg.C,b,olympe.sc.ui.Renderable.C);return b.ka()};olympe.sc.ui.Lb.xd=class extends olympe.sc.ui.Lb.fk{qs(a,b){var c=olympe.j.kb,d=olympe.j.aa;const e=olympe.j.ga,f=olympe.ui.F.xd;var g=olympe.ui.ha.Db.Sb;const k=olympe.sc.ui.Lb.fk.D.Uf,l=olympe.sc.ui.Lb.fk.D.Jy,m=olympe.sc.ui.Lb.xd.$,n=olympe.sc.ui.Lb.xd.T;var p=olympe.sc.ui.Lb.xd.da,r=olympe.sc.ui.Lb.xd.R;const t=this.Ea(olympe.sc.ui.Renderable.C,a,d,d.ZERO,!0);var u=this.Ea(olympe.sc.ui.Renderable.D,a,d,d.ZERO,!0);p=this.Ea(p,a,d,d.ZERO,!0);g=this.Ea(m,a,c,g,!0);c=this.Ea(n,a,c,k,!0);r=this.Ea(r,
|
|
1971
1971
|
a,d,olympe.j.Ba(-1),!0);u=olympe.j.Xa([c,u,b.Qc(),p],(v,w,x,y)=>olympe.j.Ba(v.valueOf()===l&&0<x?(w-(x-1)*y)/x:-1),olympe.j.aa);d=new f(t,p,d.ZERO,d.ZERO);Rq(this,d,a,b,new e(r,u),g);return d}D(a){return this.Ea(olympe.sc.ui.Lb.xd.R,a,olympe.j.aa,olympe.j.Ba(-1)).Mj(-1)}C(a){const b=olympe.sc.ui.Lb.fk.D.Jy;return this.Ea(olympe.sc.ui.Lb.xd.T,a,olympe.j.kb,olympe.sc.ui.Lb.fk.D.Uf).Se(b)}};olympe.sc.ui.Lb.xd.U=olympe.dc.Ja.C('016c245de13d033efad4',olympe.sc.ui.Lb.xd);olympe.sc.ui.Lb.xd.$=olympe.sc.ui.Lb.xd.U.fa('016c2463a6aab57119e9');
|
|
1972
|
-
olympe.sc.ui.Lb.xd.T=olympe.sc.ui.Lb.xd.U.fa('016c245e748f56bc527c');olympe.sc.ui.Lb.xd.da=olympe.sc.ui.Lb.xd.U.fa('016c24642a7b84145c27');olympe.sc.ui.Lb.xd.R=olympe.sc.ui.Lb.xd.U.fa('016c2464540a0699987e');olympe.sc.ui.Lb.xd.U.C=a=>{const b=a.create(olympe.sc.ui.Lb.xd);a.Qb(olympe.sc.
|
|
1973
|
-
218,218);this.O=olympe.j.Color.create(38,38,38);olympe.j.Color.create(172,146,236)}Ai(){return'Helvetica'}Bi(){return 100}cq(){return 0}hf(){return S(this,'rootElement',olympe.ui.F.ea.ar,void 0,()=>{let a=new olympe.ui.F.ea.ar;a.Ma(this.$);return a})}Gm(a){return S(this,'button',olympe.ui.F.ea.ak,a,b=>{let c=new olympe.ui.F.ea.ak;switch(b){case olympe.sc.Gc.
|
|
1974
|
-
c.Wb(0);c.nd(this.W);c.ad(1);c.Zj(this.C);K(c.Oa,this.W);K(c.R,this.W);break;case olympe.sc.Gc.
|
|
1975
|
-
this.fontSize.hb(3))),c.vb('Helvetica'),c.rb(16),c.Bb(100),c.Ma(olympe.j.Color.create(69,90,100)),b=olympe.j.Color.create(255,255,255,.8),K(c.R,b),c.lb(this.Ha),c.Wb(5),c.nd(Dc()),c.ad(1),c.$g(new olympe.j.ga(0,0),5,1,olympe.j.Color.create(0,0,0,.2)),c.Zj(olympe.j.Color.create(69,90,100))}return c})}ru(a){return S(this,'label',olympe.ui.F.ea.Ph,a,b=>{let c=new olympe.ui.F.ea.Ph;c.vb('Helvetica');c.Bb(100);c.rb(this.fontSize);c.lb(this.ca);c.Xb(olympe.ui.ha.rc.Sc);switch(b){case olympe.sc.Gc.
|
|
1976
|
-
break;case olympe.sc.Gc.
|
|
1977
|
-
1),2,0,olympe.j.Color.create(0,0,0,.2),!0),c.Wb(5),c.nd(olympe.j.Color.create(128,128,128,.2)),c.lb(olympe.j.Color.create(128,128,128)),c.Bb(400)}return c})}ix(a){return S(this,'textArea',olympe.ui.F.ea.jl,a,()=>{let b=new olympe.ui.F.ea.jl;b.Ma(this.$);b.lb(this.ca);b.nd(this.ma);b.rb(12);b.vb('Helvetica')})}Xw(a){return S(this,olympe.ui.F.ea.ji.Dc,olympe.ui.F.ea.ji,a,b=>{let c=new olympe.ui.F.ea.ji;switch(b){case olympe.sc.Gc.
|
|
1978
|
-
case olympe.sc.Gc.
|
|
1979
|
-
191,191));b.tf().ad(2);b.tf().Wb(100);b.Kg().Ma(olympe.j.Color.create(60,187,51));b.Kg().Wb(100);b.uf().nd(olympe.j.Color.create(191,191,191));b.uf().ad(2);b.uf().Wb(100);b.uf().Ma(olympe.j.Color.create(230,230,230));b.sf().nd(olympe.j.Color.create(191,191,191));b.sf().ad(2);b.sf().Wb(100);b.sf().Ma(olympe.j.Color.create(230,230,230));switch(a){case olympe.sc.Gc.
|
|
1972
|
+
olympe.sc.ui.Lb.xd.T=olympe.sc.ui.Lb.xd.U.fa('016c245e748f56bc527c');olympe.sc.ui.Lb.xd.da=olympe.sc.ui.Lb.xd.U.fa('016c24642a7b84145c27');olympe.sc.ui.Lb.xd.R=olympe.sc.ui.Lb.xd.U.fa('016c2464540a0699987e');olympe.sc.ui.Lb.xd.U.C=a=>{const b=a.create(olympe.sc.ui.Lb.xd);a.Qb(olympe.sc.gg.C,b,olympe.sc.ui.ec.R);a.Qb(olympe.sc.gg.C,b,olympe.sc.ui.ec.T);return b.ka()};olympe.sc.ui.Of={};olympe.sc.ui.Of.Qv=class extends olympe.dc.CloudObject{};olympe.sc.ui.Of.Qv.U=olympe.dc.Ja.C('0168c77252629e4b7e4b',olympe.sc.ui.Of.Qv);olympe.sc.ui.Of.GestureEvent=class extends olympe.sc.ui.Of.Qv{};olympe.sc.ui.Of.GestureEvent.U=olympe.dc.Ja.C('0168dcccfca62952a55f',olympe.sc.ui.Of.GestureEvent);olympe.sc.ui.Of.GestureEvent.C={b0:'Horizontal Pan',C2:'Vertical Pan',c0:'Horizontal Swipe',m0:'Long Press',n0:'Long Press Up',h1:'Rotate',T0:'Pinch'};olympe.sc.ui.Of.MouseEvent=class extends olympe.sc.ui.Of.Qv{};olympe.sc.ui.Of.MouseEvent.U=olympe.dc.Ja.C('0168c772532efa4be843',olympe.sc.ui.Of.MouseEvent);olympe.sc.ui.Of.MouseEvent.C={t0:'Mouse Click',h_:'Mouse Double Click',w0:'Mouse Move',u0:'Mouse Enter',v0:'Mouse Leave',x0:'Mouse Wheel'};olympe.sc.ui.Of.hk=class extends olympe.sc.ui.Of.MouseEvent{};olympe.sc.ui.Of.hk.U=olympe.dc.Ja.C('0168dc74bc018fb93ca2',olympe.sc.ui.Of.hk);olympe.sc.ui.Of.Gr=class extends olympe.dc.CloudObject{};olympe.sc.ui.Of.Gr.U=olympe.dc.Ja.C('0168e0e2c4621df32516',olympe.sc.ui.Of.Gr);olympe.sc.ui.Of.TouchEvent=class extends olympe.sc.ui.Of.Qv{};olympe.sc.ui.Of.TouchEvent.U=olympe.dc.Ja.C('0168e0f0f8b8d1b6daa2',olympe.sc.ui.Of.TouchEvent);olympe.sc.ui.Of.TouchEvent.C={s2:'Touch Start',q2:'Touch Move',p2:'Touch End',o2:'Touch Cancel'};olympe.sc.ui.jf={};olympe.sc.ui.jf.Zk=class extends olympe.sc.Metadata{FA(){return olympe.sc.ui.jf.Zk.C}GA(){return olympe.sc.ui.jf.Zk.D}};olympe.sc.ui.jf.Zk.U=olympe.dc.Ja.C('01621f6ab29d770a3bba',olympe.sc.ui.jf.Zk);olympe.sc.ui.jf.Zk.C=olympe.sc.ui.jf.Zk.U.fa('01621f6ab58c2f884654');olympe.sc.ui.jf.Zk.D=olympe.sc.ui.jf.Zk.U.fa('01621f6ab6ac89348f20');olympe.sc.Gc={};olympe.sc.Gc.fg=class extends olympe.ui.F.ea.My{constructor(a){super();a=a.hf().na();olympe.j.yb();this.size=a.qa().vn(a.ta());this.fontSize=olympe.j.Ba(16);this.ca=Bc();Ac();this.ld=Cc();this.Ha=O();this.W=new olympe.j.Color(245,110,50);this.kc=olympe.j.Color.create(236,101,87);this.sb=olympe.j.Color.create(251,211,131);olympe.j.Color.create(217,83,79);this.$=olympe.j.Color.create(247,247,247);this.C=O();Bc();olympe.j.Color.create(43,43,43);this.Oa=olympe.j.Color.create(255,255,255,.5);this.ma=olympe.j.Color.create(218,
|
|
1973
|
+
218,218);this.O=olympe.j.Color.create(38,38,38);olympe.j.Color.create(172,146,236)}Ai(){return'Helvetica'}Bi(){return 100}cq(){return 0}hf(){return S(this,'rootElement',olympe.ui.F.ea.ar,void 0,()=>{let a=new olympe.ui.F.ea.ar;a.Ma(this.$);return a})}Gm(a){return S(this,'button',olympe.ui.F.ea.ak,a,b=>{let c=new olympe.ui.F.ea.ak;switch(b){case olympe.sc.Gc.fg.C.dK:c.Gb(new olympe.j.ga(this.fontSize.hb(12),this.fontSize.hb(3)));c.vb('Helvetica');c.rb(this.fontSize);c.Bb(100);c.Ma(this.W);c.lb(this.Ha);
|
|
1974
|
+
c.Wb(0);c.nd(this.W);c.ad(1);c.Zj(this.C);K(c.Oa,this.W);K(c.R,this.W);break;case olympe.sc.Gc.fg.C.WU:c.Gb(new olympe.j.ga(this.fontSize.hb(12),this.fontSize.hb(3)));c.vb('Helvetica');c.rb(this.fontSize);c.Bb(100);c.Ma(this.sb);c.lb(this.ca);c.Wb(0);c.nd(this.sb);c.ad(1);break;case olympe.sc.Gc.fg.C.eC:c.Gb(new olympe.j.ga(0,90));c.vb('Helvetica');c.Bb(100);break;case olympe.sc.Gc.fg.C.bD:c.Gb(new olympe.j.ga(10,90));c.vb('Helvetica');c.Bb(100);break;default:c.Gb(new olympe.j.ga(this.fontSize.hb(12),
|
|
1975
|
+
this.fontSize.hb(3))),c.vb('Helvetica'),c.rb(16),c.Bb(100),c.Ma(olympe.j.Color.create(69,90,100)),b=olympe.j.Color.create(255,255,255,.8),K(c.R,b),c.lb(this.Ha),c.Wb(5),c.nd(Dc()),c.ad(1),c.$g(new olympe.j.ga(0,0),5,1,olympe.j.Color.create(0,0,0,.2)),c.Zj(olympe.j.Color.create(69,90,100))}return c})}ru(a){return S(this,'label',olympe.ui.F.ea.Ph,a,b=>{let c=new olympe.ui.F.ea.Ph;c.vb('Helvetica');c.Bb(100);c.rb(this.fontSize);c.lb(this.ca);c.Xb(olympe.ui.ha.rc.Sc);switch(b){case olympe.sc.Gc.fg.D.jF:c.Bb(700);
|
|
1976
|
+
break;case olympe.sc.Gc.fg.D.qr:c.Fc(this.fontSize.Ua(2)),c.Kc(this.fontSize.Ua(2)),c.lb(this.Ha),c.rb(this.fontSize.hb(.8))}return c})}jx(a){return S(this,'textField',olympe.ui.F.ea.kl,a,b=>{let c=new olympe.ui.F.ea.kl;c.lb(this.ca);c.Zg(this.ld);c.td(2);c.sd(2);c.Fc(8);c.Kc(8);c.rb(this.fontSize.hb(.8));c.Bb(100);c.nd(this.ma);c.ad(1);c.Ma(this.C);switch(b){case olympe.sc.Gc.fg.W.qr:c.Fc(2);c.Kc(2);c.td(1);c.sd(1);c.nd(this.O);break;default:c.Ma(olympe.j.Color.create(234,234,234)),c.$g(new olympe.j.ga(0,
|
|
1977
|
+
1),2,0,olympe.j.Color.create(0,0,0,.2),!0),c.Wb(5),c.nd(olympe.j.Color.create(128,128,128,.2)),c.lb(olympe.j.Color.create(128,128,128)),c.Bb(400)}return c})}ix(a){return S(this,'textArea',olympe.ui.F.ea.jl,a,()=>{let b=new olympe.ui.F.ea.jl;b.Ma(this.$);b.lb(this.ca);b.nd(this.ma);b.rb(12);b.vb('Helvetica')})}Xw(a){return S(this,olympe.ui.F.ea.ji.Dc,olympe.ui.F.ea.ji,a,b=>{let c=new olympe.ui.F.ea.ji;switch(b){case olympe.sc.Gc.fg.O.uR:c.Ma(this.C);break;case olympe.sc.Gc.fg.O.wR:c.Ma(this.W);break;
|
|
1978
|
+
case olympe.sc.Gc.fg.O.vR:c.Ma(this.kc);break;default:c.Ma(this.C),c.nd(this.ma),c.ad(1),c.az('images/arrow.png'),b=new olympe.j.ga(this.fontSize.hb(.6),this.fontSize.hb(.6)),K(c.C,b),b=new olympe.ui.F.ea.ed,b.Ma(this.C),b.nd(this.ma),b.ad(1),b.$g(new olympe.j.ga(2,2),5),K(c.D,b)}return c})}Tw(){return S(this,olympe.ui.F.ea.gi.Dc,olympe.ui.F.ea.gi,void 0,a=>{const b=new olympe.ui.F.ea.gi;b.oA().Gb(new olympe.j.ga(60,30));b.tf().Ma(olympe.j.Color.create(230,230,230));b.tf().nd(olympe.j.Color.create(191,
|
|
1979
|
+
191,191));b.tf().ad(2);b.tf().Wb(100);b.Kg().Ma(olympe.j.Color.create(60,187,51));b.Kg().Wb(100);b.uf().nd(olympe.j.Color.create(191,191,191));b.uf().ad(2);b.uf().Wb(100);b.uf().Ma(olympe.j.Color.create(230,230,230));b.sf().nd(olympe.j.Color.create(191,191,191));b.sf().ad(2);b.sf().Wb(100);b.sf().Ma(olympe.j.Color.create(230,230,230));switch(a){case olympe.sc.Gc.fg.R.qr:b.sf().nd(this.O),b.sf().ad(1),b.Kg().nd(this.O),b.Kg().ad(1),b.tf().nd(this.O),b.tf().ad(1),b.uf().nd(this.O),b.uf().ad(1)}return b})}rA(a){return S(this,
|
|
1980
1980
|
'',olympe.ui.F.ea.pm,a,()=>{let b=new olympe.ui.F.ea.pm;var c=new olympe.ui.F.ea.ed;c.Gb(new olympe.j.ga(206,19));c.ad(olympe.j.aa.ONE);c.Wb(olympe.j.Ba(10));b.C=c;c=new olympe.ui.F.ea.ed;c.Gb(new olympe.j.ga(12,24));c.ad(olympe.j.aa.ONE);c.Wb(olympe.j.Ba(10));b.D=c;c=new olympe.ui.F.ea.ed;c.Gb(new olympe.j.ga(12,24));c.ad(olympe.j.aa.ONE);c.Wb(olympe.j.Ba(10));b.O=c;return b})}ex(){return S(this,'popupPanel',olympe.ui.F.ea.yj,void 0,()=>{let a=new olympe.ui.F.ea.yj;K(a.C,this.Oa);a.Ma(this.C);return a})}Sr(a){return S(this,
|
|
1981
|
-
'alert',olympe.ui.F.ea.Jk,a,()=>{let b=new olympe.ui.F.ea.Jk;b.Gb(new olympe.j.ga(360,1));b.Yd(!1);b.Ed(!0);K(b.C,this.Oa);b.Ma(this.C);var c=this.fontSize.hb(1.5);K(b.D,c);b.Df(this.fontSize.hb(1.5));K(b.O,olympe.sc.Gc.
|
|
1981
|
+
'alert',olympe.ui.F.ea.Jk,a,()=>{let b=new olympe.ui.F.ea.Jk;b.Gb(new olympe.j.ga(360,1));b.Yd(!1);b.Ed(!0);K(b.C,this.Oa);b.Ma(this.C);var c=this.fontSize.hb(1.5);K(b.D,c);b.Df(this.fontSize.hb(1.5));K(b.O,olympe.sc.Gc.fg.D.jF);K(b.R,olympe.sc.Gc.fg.C.dK);b.Wb(0);return b})}Zw(a){return S(this,'grid',olympe.ui.F.ea.vj,a,()=>{let b=new olympe.ui.F.ea.vj;b.Ma(this.$);K(b.C,olympe.sc.Gc.fg.D.eC);K(b.D,olympe.sc.Gc.fg.D.bD);b.Vj(30);Hf(b);return b})}iA(a){return S(this,'bubble',olympe.ui.F.ea.qp,a,()=>
|
|
1982
1982
|
{let b=new olympe.ui.F.ea.qp;K(b.D,10);K(b.O,5);K(b.R,10);var c=olympe.j.Color.create(255,255,255);K(b.T,c);c=olympe.j.Color.create(200,200,200);K(b.W,c);K(b.$,1);return b})}pu(a){return S(this,'inputPopup',olympe.ui.F.ea.Qk,a,()=>{let b=new olympe.ui.F.ea.Qk;b.Gb(new olympe.j.ga(500,1));b.Yd(!1);b.Ed(!0);var c=olympe.j.Color.create(0,0,0,.6);K(b.C,c);b.Ma(this.$);K(b.D,10);b.Df(10);K(b.R,5);K(b.T,5);K(b.O,'Helvetica');return b})}EA(a){return S(this,'windowComponent',olympe.ui.F.ea.Tp,a,()=>{let b=
|
|
1983
|
-
new olympe.ui.F.ea.Tp;K(b.W,olympe.j.la(40));K(b.R,olympe.j.la(100));K(b.T,olympe.j.la(100));If(b);Jf(b);K(b.C,1);var c=new olympe.j.ga(25,25);K(b.D,c);K(b.O,'images/close.png');return b})}uA(a){return S(this,olympe.ui.F.ea.sm.Dc,olympe.ui.F.ea.sm,a,b=>{const c=new olympe.ui.F.ea.ed,d=new olympe.ui.F.ea.sm;d.Wu(!1);d.bB(c);switch(b){case olympe.sc.Gc.
|
|
1984
|
-
olympe.ui.F.ea.nf.C.aw);break;default:K(c.C,olympe.ui.F.ea.nf.C.Oy)}return c})}};olympe.sc.Gc.
|
|
1985
|
-
olympe.sc.Gc.KS=class extends olympe.ui.F.Screen{constructor(a){super();this.xa=a;this.C=null}render(a){var b=olympe.j.ga,c=olympe.j.Color,d=olympe.j.Za;const e=olympe.j.Ba;var f=olympe.ui.F.cb;const g=olympe.ui.F.
|
|
1983
|
+
new olympe.ui.F.ea.Tp;K(b.W,olympe.j.la(40));K(b.R,olympe.j.la(100));K(b.T,olympe.j.la(100));If(b);Jf(b);K(b.C,1);var c=new olympe.j.ga(25,25);K(b.D,c);K(b.O,'images/close.png');return b})}uA(a){return S(this,olympe.ui.F.ea.sm.Dc,olympe.ui.F.ea.sm,a,b=>{const c=new olympe.ui.F.ea.ed,d=new olympe.ui.F.ea.sm;d.Wu(!1);d.bB(c);switch(b){case olympe.sc.Gc.fg.T.qr:d.Wu(!0),d.aB(1),c.Ma(this.O)}return d})}mA(a){return S(this,olympe.ui.F.ea.nf.Dc,olympe.ui.F.ea.nf,a,b=>{const c=new olympe.ui.F.ea.nf;switch(b){case olympe.ui.F.ea.nf.D.GG:K(c.C,
|
|
1984
|
+
olympe.ui.F.ea.nf.C.aw);break;default:K(c.C,olympe.ui.F.ea.nf.C.Oy)}return c})}};olympe.sc.Gc.fg.O={uR:'dropdown-item',wR:'dropdown-selectedvalue',vR:'dropdown-mouseoveritem'};olympe.sc.Gc.fg.D={eC:'grid-cell',bD:'grid-selected-cell',jF:'alertTitle',qr:'panel'};olympe.sc.Gc.fg.C={dK:'selected',WU:'warning',eC:'grid-cell',bD:'grid-selected-cell'};olympe.sc.Gc.fg.W={qr:'panel'};olympe.sc.Gc.fg.R={qr:'panel'};olympe.sc.Gc.fg.T={qr:'panel'};function Sq(a,b){a.C=b}
|
|
1985
|
+
olympe.sc.Gc.KS=class extends olympe.ui.F.Screen{constructor(a){super();this.xa=a;this.C=null}render(a){var b=olympe.j.ga,c=olympe.j.Color,d=olympe.j.Za;const e=olympe.j.Ba;var f=olympe.ui.F.cb;const g=olympe.ui.F.ye,k=olympe.ui.F.jc;var l=olympe.ui.F.Mb,m=a.qa();a=a.ta();const n=d(olympe.j.aa),p=d(olympe.j.aa),r=d(olympe.j.aa),t=d(olympe.j.aa);olympe.j.Wa([m],y=>{350<y.valueOf()?(n.update(e(350)),p.update(e(60)),r.update(e(24))):(n.update(e(175)),p.update(e(30)),r.update(e(16)));t.update(e(500>y.valueOf()?
|
|
1986
1986
|
.5:1))});d=new b(n.wa(),p.wa());m=new olympe.ui.F.xd(m,15,30,30,!1,a);m.Ma(Bc());b=new g(new b(t.wa().hb(352),t.wa().hb(204)));b.Yg('images/app_launcher_logo.svg');m.appendChild(b,'logo',olympe.ui.ha.Db.Sb);const u=new f(d);u.Jb('Invalid user name or password!').lb(c.red()).Bb(800).rb(r.wa()).Xb(olympe.ui.ha.rc.Sc).vb('Roboto').rd(!0);m.appendChild(u,'errorLabel',olympe.ui.ha.Db.Sb);b=new f(d);b.Jb('User Name').lb(Cc()).vb('Roboto').rb(r.wa()).Bb(800).Xb(olympe.ui.ha.rc.Sc);m.appendChild(b,'userNameLabel',
|
|
1987
1987
|
olympe.ui.ha.Db.Sb);const v=new l(d);v.zn(olympe.ui.ha.Er.zG).Og('username').Zg(c.create(132,132,132)).lb(c.create(250,250,250)).ip().vb('Roboto').rb(r.wa()).Ld(0,Dc()).Ma(N());m.appendChild(v,'userNameField',olympe.ui.ha.Db.Sb);f=new f(d);f.Jb('Password').lb(Cc()).vb('Roboto').rb(r.wa()).Bb(800).Xb(olympe.ui.ha.rc.Sc);m.appendChild(f,'pwdLabel',olympe.ui.ha.Db.Sb);const w=new l(d);w.zn(olympe.ui.ha.Er.bK).Og('password').Zg(c.create(132,132,132)).lb(c.create(250,250,250)).ip().vb('Roboto').rb(r.wa()).Ld(0,
|
|
1988
1988
|
Dc()).Ma(N());m.appendChild(w,'pwd',olympe.ui.ha.Db.Sb);l=(new k(d,'Sign In')).Zj(c.create(20,100,253)).Ma(c.create(0,86,253)).vb('Roboto').rb(r).lb(O());m.appendChild(l,'loginButton',olympe.ui.ha.Db.Sb);this.C&&(c=(new k(d,'Guest')).Zj(c.create(20,100,253)).Ma(c.green()).vb('Roboto').rb(r).lb(O()),c.Vc(()=>{this.C()}),m.appendChild(c,'guestButton',olympe.ui.ha.Db.Sb));const x=()=>{var y=olympe.j.Qa(v.Lj());y=y?y.valueOf().replace(/^\s*|\s*$/,''):'';y=y.split('@');y=y[0];const A=new olympe.xa.Request;
|
|
1989
1989
|
A.set('username',y);mf(A,olympe.j.Qa(w.Lj()));lf(this.xa,A,void 0,H=>{H&&u.rd(!1)})};v.ej(y=>{y.sA().Rb(13)&&w.mj()});w.ej(y=>{y.sA().Rb(13)&&x()});l.Vc(x);v.mj();return m}};function Tq(a,b){a.D=b}function Uq(a,b){a.C=b}
|
|
1990
|
-
olympe.sc.Gc.LS=class extends olympe.ui.F.Screen{constructor(a){super();this.C=this.D=null;this.O=a}render(a){const b=olympe.j.ga,c=olympe.ui.F.cb;var d=olympe.ui.F.
|
|
1990
|
+
olympe.sc.Gc.LS=class extends olympe.ui.F.Screen{constructor(a){super();this.C=this.D=null;this.O=a}render(a){const b=olympe.j.ga,c=olympe.ui.F.cb;var d=olympe.ui.F.ye,e=a.qa();const f=a.ta(),g=olympe.j.Xa([e],m=>olympe.j.Ba(500>m.valueOf()?.5:1),olympe.j.aa),k=(new olympe.dc.Mp(olympe.sc.ui.Vh.U.ka(),olympe.sc.ui.Oz)).kJ().ek();a=new olympe.ui.F.xd(a.qa(),10,10,30,!1,f);a.Ma(Bc());d=new d(new b(g.hb(352),g.hb(204)));d.Yg('images/app_launcher_logo.svg');a.appendChild(d,'logo',olympe.ui.ha.Db.Sb);
|
|
1991
1991
|
const l=oc(e,375);e=new olympe.ui.F.uU(new b(l,f.ya(g.hb(204).Sa(100))),k,m=>{m=(new c(new b(l,70))).Jb(m.bb());m.Xb(olympe.ui.ha.rc.Sc).Ub(olympe.ui.ha.Db.Sb).rb(32);m.lb(Cc());m.Ma(Dc());return m},m=>{m&&this.D&&this.D(m)});e.Ma(N());jg(e,()=>{});a.appendChild(e,'appList',olympe.ui.ha.Db.Sb);e=new olympe.ui.F.jc(new b(l,50));e.Jb('Logout').lb(N()).vb('Roboto').rb(20).Bb(800).Wb(15).Ld(0,Dc()).Ma(Cc());e.Vc(()=>{this.C&&this.C()});e.rd(this.O.mx());a.appendChild(e,'logoutButton',olympe.ui.ha.Db.Sb);
|
|
1992
1992
|
return a}};function Vq(a){return q(function*(){a.$||(yield $p(a),a.$=!0)})}function Wq(a,b,c){var d=new olympe.sc.Gc.KS(a.T);c.BD(d,'login');Sq(d,()=>{c.VA('logged')});c.eP();d=new olympe.sc.Gc.LS(a.T);c.BD(d,'selection');c.zD('login','selection','logged');c.zD('selection','login','logout');b.appendChild(c,'launcher',new olympe.j.ga(0,0));Tq(d,e=>{a.C=e.ka();b.removeChild('launcher');cq(a)});Uq(d,()=>{a.T.Cu().then(()=>c.VA('logout'))})}
|
|
1993
|
-
olympe.sc.Gc.xr=class extends olympe.sc.
|
|
1993
|
+
olympe.sc.Gc.xr=class extends olympe.sc.ve.xr{constructor(a,b,c,d,e,f,g,k,l,m,n,p,r,t){super(a,c,d,f,g,m,n,p,t,null);this.ea=l;this.ma=b;this.sb=k;this.$=!1;this.za=t.get('manifestBaseUrl');this.Pb=t.get('serviceWorkerUrl');this.R=r}da(){this.ma.da(this.ea)}ca(){super.ca();const a=this.ma.hf();if(this.za.length){var b=(new URL(window.location.toString())).origin;b=`${this.za}/${this.C}?origin=${encodeURI(b)}`;a.Nx(b)}if(this.R.O()){const c=this.Pb+'&appName='+this.C;this.R.register(c).then(()=>{this.R.C(self.location.toString());
|
|
1994
1994
|
this.R.C(c);Array.from(document.querySelectorAll('script,link,img')).map(d=>d.src||d.href).filter(d=>!!d).forEach(d=>{this.R.C(d)})})}this.V.debug('Remove loading spinner');a.Qr()}run(){const a=olympe.Y.mf.C.nr,b=olympe.Y.mf.C.jk,c=olympe.Y.mf.C.hi;let d=!1;const e=olympe.ui.Na.hf(),f=new olympe.ui.F.mL(e.na());0===this.C.length?Wq(this,e,f):this.da();olympe.j.Wa([this.O.getState()],k=>{switch(k){case a:case b:this.V.debug('Server session opened or working offline, start the application');this.$=
|
|
1995
1995
|
!1;Vq(this).then(olympe.j.yb().re(()=>{0===this.C.length?f.VA('logged'):d||(cq(this),d=!0)}));break;case c:this.V.debug('Impossible to open a connection to the orchestrator and offline mode is disabled.')}},'Runtime initial connectivity state listener');let g=!1;olympe.j.Fl([this.O.getState()],k=>{const l=k===olympe.Y.mf.C.nr;g&&l&&this.sb.D();g=k===olympe.Y.mf.C.hi})}};olympe.sc.Gc.xr.Aa=[olympe.Af.uF];olympe.sc.Gc.ba={oL:'sc.uiruntime.Theme',Ft:'sc.uiruntime.RuntimeAppConfig'};olympe.sc.Gc.sy={Wi:'sc.uiruntime.Main'};olympe.sc.Gc.pa={uJ:'app.manifest.enabled',HC:'app.manifest.httpHost',wJ:'app.manifest.httpPort',xJ:'app.manifest.httpSSL',vJ:'app.manifest.httpBasePath',PK:'app.serviceworker.url',NK:'app.serviceworker.cacheVersion'};
|
|
1996
|
-
olympe.sa.$e(function(a){B(a,olympe.sc.Gc.ba.oL,olympe.sc.Gc.
|
|
1996
|
+
olympe.sa.$e(function(a){B(a,olympe.sc.Gc.ba.oL,olympe.sc.Gc.fg,olympe.ui.ba.Ob);var b=a.getParameter(olympe.Y.pa.Hy);E(a,olympe.sc.Gc.pa.uJ,!0);E(a,olympe.sc.Gc.pa.HC,b);b='localhost'===a.getParameter(olympe.sc.Gc.pa.HC);E(a,olympe.sc.Gc.pa.wJ,b?3141:443);E(a,olympe.sc.Gc.pa.xJ,!b);E(a,olympe.sc.Gc.pa.vJ,'runtime/manifest');E(a,olympe.sc.Gc.pa.PK,'/service_worker.js');E(a,olympe.sc.Gc.pa.NK,a.getParameter(olympe.Jo.pa.VERSION)||'1');C(a,olympe.sc.Gc.ba.Ft,[olympe.sc.ve.ba.Ft,new olympe.sa.zb(olympe.sc.Gc.pa.uJ),
|
|
1997
1997
|
new olympe.sa.zb(olympe.sc.Gc.pa.HC),new olympe.sa.zb(olympe.sc.Gc.pa.wJ),new olympe.sa.zb(olympe.sc.Gc.pa.xJ),new olympe.sa.zb(olympe.sc.Gc.pa.vJ),new olympe.sa.zb(olympe.sc.Gc.pa.PK),new olympe.sa.zb(olympe.sc.Gc.pa.NK)],(c,d,e,f,g,k,l,m)=>{c=new Map(c);e=(new olympe.Fa.Mv(e,f,k,g)).le();c.set('manifestBaseUrl',d?e:'');c.set('serviceWorkerUrl',`${l}?version=${m}`);return c});B(a,olympe.sc.Gc.sy.Wi,olympe.sc.Gc.xr,olympe.sc.ba.Vb,olympe.ui.ba.Ob,olympe.xa.ba.Ob,olympe.Y.ba.bm,olympe.Y.ba.Jt,olympe.dc.query.ba.fw,
|
|
1998
|
-
olympe.host.ba.fo,olympe.host.ba.Lt,olympe.sc.Gc.ba.oL,olympe.sc.ba.hw,olympe.sc.
|
|
1998
|
+
olympe.host.ba.fo,olympe.host.ba.Lt,olympe.sc.Gc.ba.oL,olympe.sc.ba.hw,olympe.sc.ve.ba.dl,olympe.oa.ba.ho,olympe.Fa.ba.Dz,olympe.sc.Gc.ba.Ft);olympe.Af.Jq(a,olympe.sc.Gc.sy.Wi,'sc.runtime');olympe.Af.Jq(a,olympe.sc.Gc.sy.Wi,'sc.ui');olympe.Af.Jq(a,olympe.sc.Gc.sy.Wi)},'olympe.sc.uiruntime');olympe.public={};olympe.public.Lc=class a{static eW(b,c){const d=new SRPClient,e=d.generateRandomSalt();return{username:b,login:b,salt:e,verifier:d.generateVerifier(e,b,c)}}static getState(){return olympe.j.Qa(olympe.public.Lc.get().D.wa())}static mx(b){return a.D(olympe.public.Lc.get().mx(),b).pipe(rxjs.operators.map(c=>c.valueOf()))}static wW(){return olympe.j.Qa(olympe.public.Lc.get().wk())}static kY(b){return a.D(olympe.public.Lc.get().wk(),b)}static vk(){var b=olympe.j,c=b.Qa;var d=olympe.public.Lc.get().C.wa().Ci();
|
|
1999
1999
|
return c.call(b,d)}static Iq(){return new Promise((b,c)=>{olympe.public.Lc.get().Iq(d=>d?c(d):b())})}static PW(){return olympe.j.Qa(olympe.public.Lc.get().ou())||void 0}static vX(){const b=Fd(olympe.public.Lc.get());return{user:b.Lg(),userTag:b.wk(),nonce:b.Ci(),payload:b.Rv(),idpName:b.qm(),protocol:b.kr()}}static OW(){return Array.from(nf().keys())}static xn(){olympe.public.Lc.get().xn()}static xu(b){return new Promise((c,d)=>{olympe.public.Lc.get().xu(b,e=>e?d(e):c())})}static VX(b,c){return olympe.public.Lc.C((new Map).set('username',
|
|
2000
2000
|
b).set('password',c),olympe.xa.Tg.C.SRP)}static WX(b){const c=nf();if(0===c.size||b&&!c.has(b)){var d=0===c.size?'There are no available IDPs':`The IDP name ${b} is not valid, the valid names are ${Array.from(c.keys())}`;return Promise.reject(d)}b?(d=b,b=c.get(b)):(b=Array.from(c)[0],d=b[0],b=b[1]);return olympe.public.Lc.C((new Map).set('idpName',d),b)}static UX(){return olympe.public.Lc.C(new Map,olympe.xa.Tg.C.SAML)}static XX(b,c){return olympe.public.Lc.C((new Map).set('username',b).set('nonce',
|
|
2001
|
-
c),olympe.xa.Tg.C.NC)}static TX(){return olympe.public.Lc.C(new Map,olympe.xa.Tg.C.OAUTH2)}static Cu(){return olympe.public.Lc.get().Cu()}static C(b,c){const d=new olympe.xa.Request;for(const [e,f]of b)d.set(e,f);return new Promise(e=>{lf(olympe.public.Lc.get(),d,c,()=>{e()})})}static get(){return olympe.xa.rk()}static D(b,c){return b.asObservable('function'===typeof c.
|
|
2001
|
+
c),olympe.xa.Tg.C.NC)}static TX(){return olympe.public.Lc.C(new Map,olympe.xa.Tg.C.OAUTH2)}static Cu(){return olympe.public.Lc.get().Cu()}static C(b,c){const d=new olympe.xa.Request;for(const [e,f]of b)d.set(e,f);return new Promise(e=>{lf(olympe.public.Lc.get(),d,c,()=>{e()})})}static get(){return olympe.xa.rk()}static D(b,c){return b.asObservable('function'===typeof c.se?c.se():c)}};olympe.public.Lc.logout=olympe.public.Lc.Cu;olympe.public.Lc.loginOpenID=olympe.public.Lc.TX;
|
|
2002
2002
|
olympe.public.Lc.loginToken=olympe.public.Lc.XX;olympe.public.Lc.loginSAML=olympe.public.Lc.UX;olympe.public.Lc.loginSSO=olympe.public.Lc.WX;olympe.public.Lc.loginSRP=olympe.public.Lc.VX;olympe.public.Lc.getUserFromToken=olympe.public.Lc.xu;olympe.public.Lc.sendKeepAlive=olympe.public.Lc.xn;olympe.public.Lc.getIDPNames=olympe.public.Lc.OW;olympe.public.Lc.getUserToken=olympe.public.Lc.vX;olympe.public.Lc.getIDPToken=olympe.public.Lc.PW;olympe.public.Lc.refreshToken=olympe.public.Lc.Iq;
|
|
2003
2003
|
olympe.public.Lc.getToken=olympe.public.Lc.vk;olympe.public.Lc.observeUser=olympe.public.Lc.kY;olympe.public.Lc.getCurrentUser=olympe.public.Lc.wW;olympe.public.Lc.isAuthenticated=olympe.public.Lc.mx;olympe.public.Lc.getState=olympe.public.Lc.getState;olympe.public.Lc.generateSRPData=olympe.public.Lc.eW;olympe.public.Yb=class{static create(a){return new class extends olympe.dc.Ca.Sq{C(b,c){b=a(olympe.dc.CloudObject.get(c));if('boolean'===typeof b)return b;const d=olympe.j.Za(olympe.j.ia),e=b.subscribe(f=>d.update(olympe.j.hc(f)));olympe.j.yb().Ve(()=>e.unsubscribe());return d.wa()}}}};
|
|
2004
|
-
olympe.public.Qn=class{static create(a){return new class extends olympe.dc.tg.Sq{O(b,c){return olympe.dc.CloudObject.get(c)}compare(b,c){b=a(b,c);if('number'===typeof b)return b;const d=olympe.j.Za(olympe.j.aa),e=b.subscribe(f=>d.update(olympe.j.Ba(f)));olympe.j.yb().Ve(()=>e.unsubscribe());return d.wa()}}}};olympe.public.al=class{static mY(a,b){if('string'===typeof b)throw Error('When registering a health check, the options parameter should be an object: string is not supported anymore.');return()=>{}}static nY(){return()=>{}}static connect(){return olympe.Y.ND().connect()}static disconnect(){return olympe.Y.ND().disconnect()}static Io(a){a='function'===typeof a.
|
|
2004
|
+
olympe.public.Qn=class{static create(a){return new class extends olympe.dc.tg.Sq{O(b,c){return olympe.dc.CloudObject.get(c)}compare(b,c){b=a(b,c);if('number'===typeof b)return b;const d=olympe.j.Za(olympe.j.aa),e=b.subscribe(f=>d.update(olympe.j.Ba(f)));olympe.j.yb().Ve(()=>e.unsubscribe());return d.wa()}}}};olympe.public.al=class{static mY(a,b){if('string'===typeof b)throw Error('When registering a health check, the options parameter should be an object: string is not supported anymore.');return()=>{}}static nY(){return()=>{}}static connect(){return olympe.Y.ND().connect()}static disconnect(){return olympe.Y.ND().disconnect()}static Io(a){a='function'===typeof a.se?a.se():a;return olympe.Y.ND().Io().asObservable(a).pipe(rxjs.operators.map(b=>b.valueOf()))}};olympe.public.al.isOnline=olympe.public.al.Io;
|
|
2005
2005
|
olympe.public.al.disconnect=olympe.public.al.disconnect;olympe.public.al.connect=olympe.public.al.connect;olympe.public.al.onShutdown=olympe.public.al.nY;olympe.public.al.onHealthCheck=olympe.public.al.mY;'object'===typeof exports&&(exports={CloudObject:olympe.dc.CloudObject,Relation:olympe.dc.Oc.Relation,Direction:olympe.dc.Ib,generateTag:olympe.oa.Rr,tagToString:olympe.dc.Ya,register:olympe.dc.register,defineProperty:olympe.dc.defineProperty,defineRelation:olympe.dc.zM,defineInverseRelation:olympe.dc.OV,BrickContext:olympe.sc.Hb,Brick:olympe.sc.logic.Function,ActionBrick:olympe.sc.logic.Function,GlobalProperties:olympe.sc.Hb.C,registerBrick:olympe.sc.logic.Ja.C,FunctionBrick:olympe.sc.logic.Function,
|
|
2006
2006
|
Context:olympe.sc.Hb,Entry:olympe.dc.Oc.Entry,PropertyModel:olympe.dm.Property,RelationModel:olympe.dm.Relation,StringModel:olympe.dm.String,NumberModel:olympe.dm.Number,BooleanModel:olympe.dm.Boolean,DatetimeModel:olympe.dm.DateTime,ColorModel:olympe.dm.Color,File:olympe.sc.File,User:olympe.dm.User,Enum:olympe.dm.yp,EnumValue:olympe.sc.Ev,DataSource:olympe.dm.DataSource,DataResult:olympe.dc.query.vi,Workflow:olympe.sc.workflow.Workflow,WorkflowState:olympe.sc.workflow.wm,WorkflowTransition:olympe.sc.workflow.Transition,
|
|
2007
2007
|
WorkflowObjectState:olympe.sc.workflow.ObjectState,Transaction:olympe.sc.Tc,BurstTransaction:olympe.dc.yv,TransactionResult:olympe.sc.sw,PredefinedDataSource:olympe.dc.Jc,QueryResult:olympe.dc.xc,Query:olympe.dc.nb,QuerySingle:olympe.dc.Rh,Predicate:olympe.dc.query.Yb,Order:olympe.dc.query.uz,Config:class{static getParameter(a){return olympe.sa.getParameter(a)}},Process:olympe.public.al,ProbeType:olympe.host.WC.C,Cache:{getCacheEntries:()=>olympe.dc.sources.Ej().T,clearCache:a=>Tm(olympe.dc.sources.Ej(),
|
|
2008
2008
|
a),getProcessingStatus:()=>olympe.dc.sources.Ej().jh(),getProcessingErrors:()=>olympe.dc.sources.Ej().Eb.asObservable(),hasPendingChanges:()=>olympe.dc.sources.Ej().da.asObservable(),synchroniseChanges:()=>Zm(),getPendingChanges:()=>bn(),clearPendingChanges:()=>fn(),loadPendingChanges:a=>dn(a)},Color:olympe.j.Color,ErrorFlow:olympe.sc.logic.Error,ServiceRequestType:olympe.Y.pd.C,ServiceRequest:olympe.Y.uh,Service:olympe.Y.de,Auth:olympe.public.Lc,AuthState:{INIT:olympe.xa.Cc.C.INIT,AUTHENTICATING:olympe.xa.Cc.C.oy,
|
|
2009
|
-
GUEST:olympe.xa.Cc.C.Gv,AUTHENTICATED:olympe.xa.Cc.C.Mn,ERROR:olympe.xa.Cc.C.
|
|
2009
|
+
GUEST:olympe.xa.Cc.C.Gv,AUTHENTICATED:olympe.xa.Cc.C.Mn,ERROR:olympe.xa.Cc.C.we},AuthProtocol:olympe.xa.Tg.C,Sync:olympe.dc.CloudObject,BusinessObject:olympe.dc.CloudObject,StringPrimitive:olympe.dm.String,NumberPrimitive:olympe.dm.Number,BooleanPrimitive:olympe.dm.Boolean,DatetimePrimitive:olympe.dm.DateTime,ColorPrimitive:olympe.dm.Color,PropertyPrimitive:olympe.dm.Property,RelationPrimitive:olympe.dm.Relation,DBView:class extends olympe.dc.zd{static get(){return olympe.dc.eb()}},ListDef:olympe.dc.Kb,
|
|
2010
2010
|
instanceToTag:olympe.dc.Ya,registerSync:olympe.dc.Ja.C,getUniqueTag:olympe.oa.Rr,onDestroy:a=>olympe.j.yb().onDestroy(a),offDestroy:a=>olympe.j.yb().Lo(a),FollowRules:olympe.dc.Te,transformers:{Related:olympe.dc.Ra.um,RecursiveRelated:olympe.dc.Ra.zj,Distinct:olympe.dc.Ra.Cv,Filter:olympe.dc.Ra.Qf,Limit:olympe.dc.Ra.wt,Sort:olympe.dc.Ra.Cr,Union:olympe.dc.Ra.ro},ListDefPredicate:olympe.public.Yb,predicates:{And:olympe.dc.Ca.Ni,Or:olympe.dc.Ca.Wk,Not:olympe.dc.Ca.ik,Equals:olympe.dc.Ca.Lk,Contains:olympe.dc.Ca.Sn,
|
|
2011
2011
|
Greater:olympe.dc.Ca.Vy,Smaller:olympe.dc.Ca.Iz,HasRelated:olympe.dc.Ca.rt,InstanceOf:olympe.dc.Ca.Pv,Regex:olympe.dc.Ca.mo},Comparator:olympe.public.Qn,comparators:{Number:olympe.dc.tg.Number,String:olympe.dc.tg.String,DateTime:olympe.dc.tg.DateTime},valuedefs:{BooleanProperty:olympe.dc.cd.yy,StringProperty:olympe.dc.cd.nw,NumberProperty:olympe.dc.cd.$v,DateTimeProperty:olympe.dc.cd.Bv,Constant:olympe.dc.cd.gm,Tag:olympe.dc.cd.pw}});'object'===typeof exports&&Object.assign(exports,{VisualBrick:olympe.sc.ui.ec,Theme:olympe.sc.ui.ThemeModel,registerBrick:(a,b,...c)=>{b.prototype instanceof olympe.sc.ui.ec?olympe.dc.Ja.C(a,b,...c):olympe.sc.logic.Ja.C(a,b,...c)},UIBrick:olympe.sc.ui.ec});
|
|
2012
2012
|
|