restore backup and add opencode support

This commit is contained in:
libretech committed 2025-09-23 12:02:03 +02:00
1 parent b99d2ff835
commit c295660631
72 files changed
+7035 -7198

No files matched your search

File diff suppressed because it is too large. Load diff
+1
View File
@@ -0,0 +1 @@
{"version":3,"file":"nls-guilloche.umd.js.map","sources":[null,"ng://nls-guilloche/nls/services/canvas.service.ts","ng://nls-guilloche/nls/services/history.service.ts","ng://nls-guilloche/nls/services/math.service.ts","ng://nls-guilloche/nls/services/graph.service.ts","ng://nls-guilloche/nls/components/graphs.component.ts","ng://nls-guilloche/nls/directives/guilloche.directive.ts","ng://nls-guilloche/nls/services/animation.service.ts","ng://nls-guilloche/nls/nls-guilloche.module.ts"],"sourcesContent":["/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation. All rights reserved.\r\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\r\nthis file except in compliance with the License. You may obtain a copy of the\r\nLicense at http://www.apache.org/licenses/LICENSE-2.0\r\n\r\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\r\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\r\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\r\nMERCHANTABLITY OR NON-INFRINGEMENT.\r\n\r\nSee the Apache Version 2.0 License for specific language governing permissions\r\nand limitations under the License.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)\r\n t[p[i]] = s[p[i]];\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0]Line truncated
+2
View File
@@ -0,0 +1,2 @@
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core"),require("d3-random"),require("d3-selection"),require("d3-shape"),require("@angular/platform-browser")):"function"==typeof define&&define.amd?define("nls-guilloche",["exports","@angular/core","d3-random","d3-selection","d3-shape","@angular/platform-browser"],e):e(t["nls-guilloche"]={},t.ng.core,null,null,null,t.ng.platformBrowser)}(this,function(t,i,a,r,n,e){"use strict";function h(n,r){var i,a,s,t,o={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return t={next:e(0),"throw":e(1),"return":e(2)},"function"==typeof Symbol&&(t[Symbol.iterator]=function(){return this}),t;function e(e){return function(t){return function(t){if(i)throw new TypeError("Generator is already executing.");for(;o;)try{if(i=1,a&&(s=2&t[0]?a["return"]:t[0]?a["throw"]||((s=a["return"])&&s.call(a),0):a.next)&&!(s=s.call(a,t[1])).done)return s;switch(a=0,s&&(t=[2&t[0],s.value]),t[0]){case 0:case 1:s=t;break;case 4:return o.label++,{value:t[1],done:!1};case 5:o.label++,a=t[1],t=[0];continue;case 7:t=o.ops.pop(),o.trys.pop();continue;default:if(!(s=0<(s=o.trys).length&&s[s.length-1])&&(6===t[0]||2===t[0])){o=0;continue}if(3===t[0]&&(!s||t[1]>s[0]&&t[1]<s[3])){o.label=t[1];break}if(6===t[0]&&o.label<s[1]){o.label=s[1],s=t;break}if(s&&o.label<s[2]){o.label=s[2],o.ops.push(t);break}s[2]&&o.ops.pop(),o.trys.pop();continue}t=r.call(n,o)}catch(e){t=[6,e],a=0}finally{i=s=0}if(5&t[0])throw t[1];return{value:t[0]?t[1]:void 0,done:!0}}([e,t])}}}function s(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,a=n.call(t),s=[];try{for(;(void 0===e||0<e--)&&!(r=a.next()).done;)s.push(r.value)}catch(o){i={error:o}}finally{try{r&&!r.done&&(n=a["return"])&&n.call(a)}finally{if(i)throw i.error}}return s}function o(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(s(arguments[e]));return t}var c=function(){function t(t){this.rendererFactory=t,this.renderer=t.createRenderer(null,null)}return Object.defineProperty(t.prototype,"get",{get:function(){return this.canvas},enumerable:!0,configurable:!0}),t.prototype.set=function(t){this.canvas=t},t.prototype.adjustToWindow=function(){this.canvas&&(this.renderer.setStyle(this.canvas,"width",this.canvas.innerWidth),this.renderer.setStyle(this.canvas,"height",this.canvas.innerHeight))},t.decorators=[{type:i.Injectable}],t.ctorParameters=function(){return[{type:i.RendererFactory2}]},t}(),p=function(){function t(){this.history=[]}return t.prototype.save=function(t,e){this.history.push({date:new Date,graphs:t,config:e,hash:this.hash(t)})},t.prototype.hash=function(t){return btoa(JSON.stringify(t))},t.prototype.list=function(){return this.history},t.decorators=[{type:i.Injectable}],t.ctorParameters=function(){return[]},t}(),u=function(){function t(){}return t.prototype.Δ=function(t,e){return Math.pow(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2),.5)},t.prototype.getClosestCenter=function(t,e){return this.Δ(t,e.start)<this.Δ(t,e.end)?e.start:e.end},t.prototype.getFarestCenter=function(t,e){return this.Δ(t,e.start)>this.Δ(t,e.end)?e.start:e.end},t.prototype.randomPoint=function(t,e){var n={min:t.center.x-t.width*e,max:t.center.x+t.width*e},r={min:t.center.y-t.height*e,max:t.center.y+t.height*e};return{x:a.randomUniform(n.min,n.max)(),y:a.randomUniform(r.min,r.max)()}},t.prototype.centerOfArea=function(t,e){return{x:.5*t,y:.5*e}},t.prototype.centerOfPoints=function(t,e){return{x:.5*(t.x+e.x),y:.5*(t.y+e.y)}},t.prototype.centerOfCurve=function(t){var e=this.medianPoint(t),n=e.next().value,r=e.next().value,i=this.angleRadians(n,r);return Object.assign(this.centerOfPoints(n,r),{ascent:i})},t.prototype.medianOfCurve=function(t){var e=this.medianPoint(t),n=e.next().value,r=e.next().value,i=e.next().value,a=this.angleRadians(r,i);return Object.assign(n,{ascent:a})},t.prototype.angleRadians=function(t,e){return Math.atan2(e.y-t.y,e.x-t.x)},t.prototype.angleDegree=function(t,e){return 180*this.angleRadians(t,e)/Math.PI},t.prototype.medianIndex=function(t){return Math.floor(.5*t.length)},t.prototype.medianPoint=function(e){var n,r;return h(this,function(t){switch(t.label){case 0:r=e.slice(),t.label=1;case 1:return r?(n=this.medianIndex(e),[4,r[n]]):[3,3];case 2:return t.sent(),r.splice(n,1),[3,1];case 3:return[2]}})},t.prototype.bounce=function(e,n,r){var i,a,s,o;return void 0===e&&(e=1),void 0===n&&(n=1),void 0===r&&(r=0),h(this,function(t){switch(t.label){case 0:i=Math.pow(10,n),a=2/i,s=0,t.label=1;case 1:return o=Math.PI*a*s+r,[4,Math.round(Math.sin(o)*e*i)/i];case 2:return t.sent(),s++,[3,1];case 3:return[2]}})},t.prototype.flipSign=function(e){var n;return void 0===e&&(e=!0),h(this,function(t){switch(t.label){case 0:n=e?1:-1,t.label=1;case 1:return[4,n*=-1];case 2:return t.sent(),[3,1];case 3:return[2]}})},t.decorators=[{type:i.Injectable}],t}(),l=function(){function t(t){this.math=t}return t.prototype.get=function(){return this.graphs},t.prototype.set=function(t){this.graphs=tLine truncated
//# sourceMappingURL=nls-guilloche.umd.min.js.map
@@ -0,0 +1 @@
{"version":3,"sources":["null","ng://nls-guilloche/nls/services/canvas.service.ts","ng://nls-guilloche/nls/services/history.service.ts","ng://nls-guilloche/nls/services/math.service.ts","ng://nls-guilloche/nls/services/graph.service.ts","ng://nls-guilloche/nls/components/graphs.component.ts","ng://nls-guilloche/nls/directives/guilloche.directive.ts","ng://nls-guilloche/nls/services/animation.service.ts","ng://nls-guilloche/nls/nls-guilloche.module.ts"],"names":["__generator","thisArg","body","f","y","t","g","_","label","sent","trys","ops","next","verb","throw","return","Symbol","iterator","this","n","v","op","TypeError","call","done","value","pop","length","push","e","step","__read","o","m","r","i","ar","error","__spread","arguments","concat","NlsCanvasService","rendererFactory","renderer","createRenderer","prototype","canvas","set","el","adjustToWindow","setStyle","innerWidth","innerHeight","Injectable","RendererFactory2","NlsHistoryService","history","save","graphs","config","date","Date","hash","btoa","JSON","stringify","list","NlsMathService","Δ","a","b","Math","pow","x","getClosestCenter","point","matrix","start","end","getFarestCenter","randomPoint","overlap","min","center","width","max","height","Random.randomUniform","centerOfArea","centerOfPoints","p1","p2","centerOfCurve","curve","genMedian","medianPoint","radians","angleRadians","Object","assign","ascent","medianOfCurve","p3","atan2","angleDegree","PI","medianIndex","floor","points","slice","index","_a","splice","bounce","amplitude","decimals","power","round","sin","flipSign","startPositive","sign","NlsGraphService","math","get","newGraphs","animation","startAnimation","stopAnimation","spreadOrthogonal","spacing","currentPoint","currentSpacing","shiftPoint","cos","NlsGraphsComponent","canvasService","historyService","graphService","EventEmitter","genLoadedAllGraphs","countLoadedGraphs","resizingWindow","onResize","event","_this","clearTimeout","setTimeout","adjustCanvas","calcMatrix","updateGraphs","ngOnChanges","changes","restoredHistory","restoreGraph","saveHistory","saveGraph","genShiftStart","vectors","genShiftEnd","console","log","curveList","color","colors","primary","secondary","map","__assign","s","p","hasOwnProperty","apply","adjustGraph","spread","interval","stroke","direction","genVectorPoint","vector","nodes","genRandomPoints","num","generatedPoints","flipflop","svgElementRef","nativeElement","canvasWidth","getBoundingClientRect","canvasHeight","totalCenter","margin","range","genShiftX","shiftNumber","genShiftY","space","current","prepareGuillocheExport","guillocheElement","svgChange","emit","cycles","Component","args","selector","template","styles","Input","Output","ViewChild","HostListener","NlsGuillocheDirective","ngOnDestroy","group","selectAll","remove","Selection.select","initialNodes","graph","initialCurve","node","bounces","bounceAmplitude","random","i_1","animationInterval","setInterval","animateGraph","clearInterval","pathElements","spreadLines","forEach","drawGraph","updateGraph","shiftedMedians","genshiftedMedians","amount","median","shiftedPoints","attr","Shape.line","Shape.curveBasis","append","debugGraph","circle","text","Directive","ElementRef","NlsAnimationService","animate","initialGraph","newGraph","indexMiddle","pointMiddle","NlsGuillocheModule","NgModule","imports","BrowserModule","declarations","providers","exports"],"mappings":"4dAwCA,SAAAA,EAkC4BC,EAASC,GACjC,IAAsGC,EAAGC,EAAGC,EAAGC,EAA3GC,EAAI,CAAEC,MAAO,EAAGC,KAAM,WAAa,GAAW,EAAPJ,EAAE,GAAQ,MAAMA,EAAE,GAAI,OAAOA,EAAE,IAAOK,KAAM,GAAIC,IAAK,IAChG,OAAOL,EAAI,CAAEM,KAAMC,EAAK,GAAIC,QAASD,EAAK,GAAIE,SAAUF,EAAK,IAAwB,mBAAXG,SAA0BV,EAAEU,OAAOC,UAAY,WAAa,OAAOC,OAAUZ,EACvJ,SAAAO,EAAcM,GAAK,OAAO,SAAUC,GAAK,OACzC,SAAcC,GACV,GAAIlB,EAAG,MAAM,IAAImB,UAAU,mCAC3B,KAAOf,GAAG,IACN,GAAIJ,EAAI,EAAGC,IAAMC,EAAY,EAARgB,EAAG,GAASjB,EAAU,UAAIiB,EAAG,GAAKjB,EAAS,YAAOC,EAAID,EAAU,YAAMC,EAAEkB,KAAKnB,GAAI,GAAKA,EAAEQ,SAAWP,EAAIA,EAAEkB,KAAKnB,EAAGiB,EAAG,KAAKG,KAAM,OAAOnB,EAE3J,OADID,EAAI,EAAGC,IAAGgB,EAAK,CAAS,EAARA,EAAG,GAAQhB,EAAEoB,QACzBJ,EAAG,IACP,KAAK,EAAG,KAAK,EAAGhB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