proto-sudoku-wc 0.0.475 → 0.0.476
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/dist/cjs/proto-sudoku.cjs.entry.js +1 -1
- package/dist/collection/components/proto-sudoku/proto-sudoku.css +0 -55
- package/dist/esm/proto-sudoku.entry.js +1 -1
- package/dist/proto-sudoku-wc/{p-cdd2af37.entry.js → p-e3accc5e.entry.js} +1 -1
- package/dist/proto-sudoku-wc/proto-sudoku-wc.esm.js +1 -1
- package/package.json +2 -2
@@ -2680,7 +2680,7 @@ const ToolBar = _props => {
|
|
2680
2680
|
index.h(TwLabel, null)));
|
2681
2681
|
};
|
2682
2682
|
|
2683
|
-
const protoSudokuCss = "*,::before,::after{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scroll-snap-strictness:proximity;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgb(59 130 246 / 0.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;}
|
2683
|
+
const protoSudokuCss = "*,::before,::after{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scroll-snap-strictness:proximity;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgb(59 130 246 / 0.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;}::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scroll-snap-strictness:proximity;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgb(59 130 246 / 0.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;}.ds1-main{margin:1.5rem;display:flex;flex-direction:column;font-family:ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,\n 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif,\n 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';color:var(--clrs-navy, #001f3f);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.absolute{position:absolute}.relative{position:relative}.top-0{top:0px}.right-0{right:0px}.mt-5{margin-top:1.25rem}.mr-2{margin-right:0.5rem}.mr-1{margin-right:0.25rem}.mr-0{margin-right:0px}.ml-0{margin-left:0px}.mt-11{margin-top:2.75rem}.mb-11{margin-bottom:2.75rem}.mt-2{margin-top:0.5rem}.ml-auto{margin-left:auto}.flex{display:flex}.h-24px{height:24px}.h-8{height:2rem}.h-76p5{height:19.125rem}.w-8{width:2rem}.w-76p5{width:19.125rem}.max-w-min{max-width:-moz-min-content;max-width:min-content}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.justify-end{justify-content:flex-end}.rounded-md{border-radius:0.375rem}.border{border-width:1px}.border-solid{border-style:solid}.border-clrs-slate4{border-color:var(--clrs-slate4, #4e5964)}.border-clrs-red{border-color:var(--clrs-red, #ff4136)}.border-clrs-gray{border-color:var(--clrs-gray, #aaaaaa)}.border-clrs-navy{border-color:var(--clrs-navy, #001f3f)}.bg-clrs-yellow{background-color:var(--clrs-yellow, #ffdc00)}.bg-clrs-navy{background-color:var(--clrs-navy, #001f3f)}.bg-clrs-red{background-color:var(--clrs-red, #ff4136)}.bg-clrs-slate4{background-color:var(--clrs-slate4, #4e5964)}.bg-gray-50{--tw-bg-opacity:1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.bg-clrs-red-a50{background-color:var(--clrs-red-a50, #ff413650)}.bg-clrs-green-a50{background-color:var(--clrs-green-a50, #2ecc4050)}.bg-clrs-silver{background-color:var(--clrs-silver, #dddddd)}.p-0\\.5{padding:0.125rem}.p-0{padding:0px}.px-3{padding-left:0.75rem;padding-right:0.75rem}.py-2{padding-top:0.5rem;padding-bottom:0.5rem}.px-2{padding-left:0.5rem;padding-right:0.5rem}.py-1{padding-top:0.25rem;padding-bottom:0.25rem}.text-center{text-align:center}.align-top{vertical-align:top}.text-6xl{font-size:3.75rem;line-height:1}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-xs{font-size:0.75rem;line-height:1rem}.font-bold{font-weight:700}.font-thin{font-weight:100}.uppercase{text-transform:uppercase}.italic{font-style:italic}.leading-8{line-height:2rem}.text-clrs-navy{color:var(--clrs-navy, #001f3f)}.text-white{--tw-text-opacity:1;color:rgb(255 255 255 / var(--tw-text-opacity))}.text-clrs-red{color:var(--clrs-red, #ff4136)}.text-clrs-gray{color:var(--clrs-gray, #aaaaaa)}.text-clrs-slate4{color:var(--clrs-slate4, #4e5964)}.opacity-25{opacity:0.25}.opacity-75{opacity:0.75}.shadow{--tw-shadow:0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),\n 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),\n var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.border-xbb-clrs-navy{border-bottom:1px solid var(--clrs-navy, #001f3f) !important}.border-xbt-clrs-navy{border-top:1px solid var(--clrs-navy, #001f3f) !important}.border-xbl-clrs-navy{border-left:1px solid var(--clrs-navy, #001f3f) !important}.border-xbr-clrs-navy{border-right:1px solid var(--clrs-navy, #001f3f) !important}.hover\\:text-clrs-navy:hover{color:var(--clrs-navy, #001f3f)}";
|
2684
2684
|
|
2685
2685
|
const ProtoSudoku = class {
|
2686
2686
|
constructor(hostRef) {
|
@@ -47,53 +47,6 @@
|
|
47
47
|
--tw-backdrop-sepia: ;
|
48
48
|
}
|
49
49
|
|
50
|
-
::-webkit-backdrop {
|
51
|
-
--tw-border-spacing-x: 0;
|
52
|
-
--tw-border-spacing-y: 0;
|
53
|
-
--tw-translate-x: 0;
|
54
|
-
--tw-translate-y: 0;
|
55
|
-
--tw-rotate: 0;
|
56
|
-
--tw-skew-x: 0;
|
57
|
-
--tw-skew-y: 0;
|
58
|
-
--tw-scale-x: 1;
|
59
|
-
--tw-scale-y: 1;
|
60
|
-
--tw-pan-x: ;
|
61
|
-
--tw-pan-y: ;
|
62
|
-
--tw-pinch-zoom: ;
|
63
|
-
--tw-scroll-snap-strictness: proximity;
|
64
|
-
--tw-ordinal: ;
|
65
|
-
--tw-slashed-zero: ;
|
66
|
-
--tw-numeric-figure: ;
|
67
|
-
--tw-numeric-spacing: ;
|
68
|
-
--tw-numeric-fraction: ;
|
69
|
-
--tw-ring-inset: ;
|
70
|
-
--tw-ring-offset-width: 0px;
|
71
|
-
--tw-ring-offset-color: #fff;
|
72
|
-
--tw-ring-color: rgb(59 130 246 / 0.5);
|
73
|
-
--tw-ring-offset-shadow: 0 0 #0000;
|
74
|
-
--tw-ring-shadow: 0 0 #0000;
|
75
|
-
--tw-shadow: 0 0 #0000;
|
76
|
-
--tw-shadow-colored: 0 0 #0000;
|
77
|
-
--tw-blur: ;
|
78
|
-
--tw-brightness: ;
|
79
|
-
--tw-contrast: ;
|
80
|
-
--tw-grayscale: ;
|
81
|
-
--tw-hue-rotate: ;
|
82
|
-
--tw-invert: ;
|
83
|
-
--tw-saturate: ;
|
84
|
-
--tw-sepia: ;
|
85
|
-
--tw-drop-shadow: ;
|
86
|
-
--tw-backdrop-blur: ;
|
87
|
-
--tw-backdrop-brightness: ;
|
88
|
-
--tw-backdrop-contrast: ;
|
89
|
-
--tw-backdrop-grayscale: ;
|
90
|
-
--tw-backdrop-hue-rotate: ;
|
91
|
-
--tw-backdrop-invert: ;
|
92
|
-
--tw-backdrop-opacity: ;
|
93
|
-
--tw-backdrop-saturate: ;
|
94
|
-
--tw-backdrop-sepia: ;
|
95
|
-
}
|
96
|
-
|
97
50
|
::backdrop {
|
98
51
|
--tw-border-spacing-x: 0;
|
99
52
|
--tw-border-spacing-y: 0;
|
@@ -230,17 +183,10 @@
|
|
230
183
|
}
|
231
184
|
|
232
185
|
.max-w-min {
|
233
|
-
max-width: -webkit-min-content;
|
234
186
|
max-width: -moz-min-content;
|
235
187
|
max-width: min-content;
|
236
188
|
}
|
237
189
|
|
238
|
-
@-webkit-keyframes spin {
|
239
|
-
to {
|
240
|
-
transform: rotate(360deg);
|
241
|
-
}
|
242
|
-
}
|
243
|
-
|
244
190
|
@keyframes spin {
|
245
191
|
to {
|
246
192
|
transform: rotate(360deg);
|
@@ -248,7 +194,6 @@
|
|
248
194
|
}
|
249
195
|
|
250
196
|
.animate-spin {
|
251
|
-
-webkit-animation: spin 1s linear infinite;
|
252
197
|
animation: spin 1s linear infinite;
|
253
198
|
}
|
254
199
|
|
@@ -2676,7 +2676,7 @@ const ToolBar = _props => {
|
|
2676
2676
|
h(TwLabel, null)));
|
2677
2677
|
};
|
2678
2678
|
|
2679
|
-
const protoSudokuCss = "*,::before,::after{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scroll-snap-strictness:proximity;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgb(59 130 246 / 0.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;}
|
2679
|
+
const protoSudokuCss = "*,::before,::after{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scroll-snap-strictness:proximity;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgb(59 130 246 / 0.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;}::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scroll-snap-strictness:proximity;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgb(59 130 246 / 0.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;}.ds1-main{margin:1.5rem;display:flex;flex-direction:column;font-family:ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,\n 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif,\n 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';color:var(--clrs-navy, #001f3f);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.absolute{position:absolute}.relative{position:relative}.top-0{top:0px}.right-0{right:0px}.mt-5{margin-top:1.25rem}.mr-2{margin-right:0.5rem}.mr-1{margin-right:0.25rem}.mr-0{margin-right:0px}.ml-0{margin-left:0px}.mt-11{margin-top:2.75rem}.mb-11{margin-bottom:2.75rem}.mt-2{margin-top:0.5rem}.ml-auto{margin-left:auto}.flex{display:flex}.h-24px{height:24px}.h-8{height:2rem}.h-76p5{height:19.125rem}.w-8{width:2rem}.w-76p5{width:19.125rem}.max-w-min{max-width:-moz-min-content;max-width:min-content}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.justify-end{justify-content:flex-end}.rounded-md{border-radius:0.375rem}.border{border-width:1px}.border-solid{border-style:solid}.border-clrs-slate4{border-color:var(--clrs-slate4, #4e5964)}.border-clrs-red{border-color:var(--clrs-red, #ff4136)}.border-clrs-gray{border-color:var(--clrs-gray, #aaaaaa)}.border-clrs-navy{border-color:var(--clrs-navy, #001f3f)}.bg-clrs-yellow{background-color:var(--clrs-yellow, #ffdc00)}.bg-clrs-navy{background-color:var(--clrs-navy, #001f3f)}.bg-clrs-red{background-color:var(--clrs-red, #ff4136)}.bg-clrs-slate4{background-color:var(--clrs-slate4, #4e5964)}.bg-gray-50{--tw-bg-opacity:1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.bg-clrs-red-a50{background-color:var(--clrs-red-a50, #ff413650)}.bg-clrs-green-a50{background-color:var(--clrs-green-a50, #2ecc4050)}.bg-clrs-silver{background-color:var(--clrs-silver, #dddddd)}.p-0\\.5{padding:0.125rem}.p-0{padding:0px}.px-3{padding-left:0.75rem;padding-right:0.75rem}.py-2{padding-top:0.5rem;padding-bottom:0.5rem}.px-2{padding-left:0.5rem;padding-right:0.5rem}.py-1{padding-top:0.25rem;padding-bottom:0.25rem}.text-center{text-align:center}.align-top{vertical-align:top}.text-6xl{font-size:3.75rem;line-height:1}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-xs{font-size:0.75rem;line-height:1rem}.font-bold{font-weight:700}.font-thin{font-weight:100}.uppercase{text-transform:uppercase}.italic{font-style:italic}.leading-8{line-height:2rem}.text-clrs-navy{color:var(--clrs-navy, #001f3f)}.text-white{--tw-text-opacity:1;color:rgb(255 255 255 / var(--tw-text-opacity))}.text-clrs-red{color:var(--clrs-red, #ff4136)}.text-clrs-gray{color:var(--clrs-gray, #aaaaaa)}.text-clrs-slate4{color:var(--clrs-slate4, #4e5964)}.opacity-25{opacity:0.25}.opacity-75{opacity:0.75}.shadow{--tw-shadow:0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),\n 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),\n var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.border-xbb-clrs-navy{border-bottom:1px solid var(--clrs-navy, #001f3f) !important}.border-xbt-clrs-navy{border-top:1px solid var(--clrs-navy, #001f3f) !important}.border-xbl-clrs-navy{border-left:1px solid var(--clrs-navy, #001f3f) !important}.border-xbr-clrs-navy{border-right:1px solid var(--clrs-navy, #001f3f) !important}.hover\\:text-clrs-navy:hover{color:var(--clrs-navy, #001f3f)}";
|
2680
2680
|
|
2681
2681
|
const ProtoSudoku = class {
|
2682
2682
|
constructor(hostRef) {
|
@@ -1 +1 @@
|
|
1
|
-
import{h as t,g as e,f as r,r as n}from"./p-3561d2f7.js";const o=e=>{const r=e.hex||"currentColor",n=e.size||24;return t("svg",{class:e.class,width:n,height:n,viewBox:"0 0 24 24",role:"img","aria-label":"title"},t("title",null,e.label||"alien"),t("g",{fill:r},t("path",{d:"M10.31 10.93C11.33 12.57 11.18 14.5 9.96 15.28C8.74 16.04 6.92 15.33\n 5.89 13.69C4.87 12.05 5.03 10.1 6.25 9.34C7.47 8.58 9.29 9.29 10.31\n 10.93M12 17.75C14 17.75 14.5 17 14.5 17C14.5 17 14 19 12 19C10 19 9.5\n 17.03 9.5 17C9.5 17 10 17.75 12 17.75M17.75 9.34C18.97 10.1 19.13 12.05\n 18.11 13.69C17.08 15.33 15.26 16.04 14.04 15.28C12.82 14.5 12.67 12.57\n 13.69 10.93C14.71 9.29 16.53 8.58 17.75 9.34M12 20C14.5 20 20 14.86 20\n 11C20 7.14 16.41 4 12 4C7.59 4 4 7.14 4 11C4 14.86 9.5 20 12 20M12 2C17.5\n 2 22 6.04 22 11C22 15.08 16.32 22 12 22C7.68 22 2 15.08 2 11C2 6.04 6.5 2\n 12 2Z"})),t("path",{d:"M0 0h24v24H0z",fill:"none"}))},i="proto-sudoku",a=`${i}::data`,s=`${i}::inputs`,l=`${i}::pick`,c=t=>{const e=localStorage.getItem(t);return e?JSON.parse(e):void 0},u=(t,e)=>{const r=JSON.stringify(e);localStorage.setItem(t,r)},f=()=>[...c(s)],d=t=>{u(s,t.join(""))},p=()=>{const t=c(l);return null!==t?t:void 0},h=t=>{u(l,t>=0&&t<81?t:null)},m=t=>!("isConnected"in t)||t.isConnected,w=(()=>{let t;return(...e)=>{t&&clearTimeout(t),t=setTimeout((()=>{t=0,(t=>{for(let e of t.keys())t.set(e,t.get(e).filter(m))})(...e)}),2e3)}})(),v=t=>"function"==typeof t?t():t;var g,b=function(t,e){return function(){for(var r=new Array(arguments.length),n=0;n<r.length;n++)r[n]=arguments[n];return t.apply(e,r)}},y=Object.prototype.toString,x=(g=Object.create(null),function(t){var e=y.call(t);return g[e]||(g[e]=e.slice(8,-1).toLowerCase())});function C(t){return t=t.toLowerCase(),function(e){return x(e)===t}}function k(t){return Array.isArray(t)}function O(t){return void 0===t}var R=C("ArrayBuffer");function E(t){return null!==t&&"object"==typeof t}function j(t){if("object"!==x(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}var A=C("Date"),S=C("File"),N=C("Blob"),M=C("FileList");function z(t){return"[object Function]"===y.call(t)}var B=C("URLSearchParams");function T(t,e){if(null!=t)if("object"!=typeof t&&(t=[t]),k(t))for(var r=0,n=t.length;r<n;r++)e.call(null,t[r],r,t);else for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.call(null,t[o],o,t)}var P,D=(P="undefined"!=typeof Uint8Array&&Object.getPrototypeOf(Uint8Array),function(t){return P&&t instanceof P}),U={isArray:k,isArrayBuffer:R,isBuffer:function(t){return null!==t&&!O(t)&&null!==t.constructor&&!O(t.constructor)&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)},isFormData:function(t){var e="[object FormData]";return t&&("function"==typeof FormData&&t instanceof FormData||y.call(t)===e||z(t.toString)&&t.toString()===e)},isArrayBufferView:function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&R(t.buffer)},isString:function(t){return"string"==typeof t},isNumber:function(t){return"number"==typeof t},isObject:E,isPlainObject:j,isUndefined:O,isDate:A,isFile:S,isBlob:N,isFunction:z,isStream:function(t){return E(t)&&z(t.pipe)},isURLSearchParams:B,isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:T,merge:function t(){var e={};function r(r,n){e[n]=j(e[n])&&j(r)?t(e[n],r):j(r)?t({},r):k(r)?r.slice():r}for(var n=0,o=arguments.length;n<o;n++)T(arguments[n],r);return e},extend:function(t,e,r){return T(e,(function(e,n){t[n]=r&&"function"==typeof e?b(e,r):e})),t},trim:function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")},stripBOM:function(t){return 65279===t.charCodeAt(0)&&(t=t.slice(1)),t},inherits:function(t,e,r,n){t.prototype=Object.create(e.prototype,n),t.prototype.constructor=t,r&&Object.assign(t.prototype,r)},toFlatObject:function(t,e,r){var n,o,i,a={};e=e||{};do{for(o=(n=Object.getOwnPropertyNames(t)).length;o-- >0;)a[i=n[o]]||(e[i]=t[i],a[i]=!0);t=Object.getPrototypeOf(t)}while(t&&(!r||r(t,e))&&t!==Object.prototype);return e},kindOf:x,kindOfTest:C,endsWith:function(t,e,r){t=String(t),(void 0===r||r>t.length)&&(r=t.length);var n=t.indexOf(e,r-=e.length);return-1!==n&&n===r},toArray:function(t){if(!t)return null;var e=t.length;if(O(e))return null;for(var r=new Array(e);e-- >0;)r[e]=t[e];return r},isTypedArray:D,isFileList:M};function _(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var F=function(t,e,r){if(!e)return t;var n;if(r)n=r(e);else if(U.isURLSearchParams(e))n=e.toString();else{var o=[];U.forEach(e,(function(t,e){null!=t&&(U.isArray(t)?e+="[]":t=[t],U.forEach(t,(function(t){U.isDate(t)?t=t.toISOString():U.isObject(t)&&(t=JSON.stringify(t)),o.push(_(e)+"="+_(t))})))})),n=o.join("&")}if(n){var i=t.indexOf("#");-1!==i&&(t=t.slice(0,i)),t+=(-1===t.indexOf("?")?"?":"&")+n}return t};function L(){this.handlers=[]}L.prototype.use=function(t,e,r){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1},L.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},L.prototype.forEach=function(t){U.forEach(this.handlers,(function(e){null!==e&&t(e)}))};var H=L,J=function(t,e){U.forEach(t,(function(r,n){n!==e&&n.toUpperCase()===e.toUpperCase()&&(t[e]=r,delete t[n])}))};function I(t,e,r,n,o){Error.call(this),this.message=t,this.name="AxiosError",e&&(this.code=e),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o)}U.inherits(I,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var q=I.prototype,$={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach((function(t){$[t]={value:t}})),Object.defineProperties(I,$),Object.defineProperty(q,"isAxiosError",{value:!0}),I.from=function(t,e,r,n,o,i){var a=Object.create(q);return U.toFlatObject(t,a,(function(t){return t!==Error.prototype})),I.call(a,t.message,e,r,n,o),a.name=t.name,i&&Object.assign(a,i),a};var X=I,K={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},W=function(t,e){e=e||new FormData;var r=[];function n(t){return null===t?"":U.isDate(t)?t.toISOString():U.isArrayBuffer(t)||U.isTypedArray(t)?"function"==typeof Blob?new Blob([t]):Buffer.from(t):t}return function t(o,i){if(U.isPlainObject(o)||U.isArray(o)){if(-1!==r.indexOf(o))throw Error("Circular reference detected in "+i);r.push(o),U.forEach(o,(function(r,o){if(!U.isUndefined(r)){var a,s=i?i+"."+o:o;if(r&&!i&&"object"==typeof r)if(U.endsWith(o,"{}"))r=JSON.stringify(r);else if(U.endsWith(o,"[]")&&(a=U.toArray(r)))return void a.forEach((function(t){!U.isUndefined(t)&&e.append(s,n(t))}));t(r,s)}})),r.pop()}else e.append(i,n(o))}(t),e},V=U.isStandardBrowserEnv()?{write:function(t,e,r,n,o,i){var a=[];a.push(t+"="+encodeURIComponent(e)),U.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),U.isString(n)&&a.push("path="+n),U.isString(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}},Y=function(t,e){return t&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)?function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}(t,e):e},Z=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"],Q=U.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function n(t){var n=t;return e&&(r.setAttribute("href",n),n=r.href),r.setAttribute("href",n),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return t=n(window.location.href),function(e){var r=U.isString(e)?n(e):e;return r.protocol===t.protocol&&r.host===t.host}}():function(){return!0};function G(t){X.call(this,null==t?"canceled":t,X.ERR_CANCELED),this.name="CanceledError"}U.inherits(G,X,{__CANCEL__:!0});var tt=G,et={"Content-Type":"application/x-www-form-urlencoded"};function rt(t,e){!U.isUndefined(t)&&U.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var nt,ot={transitional:K,adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(nt=function(t){return new Promise((function(e,r){var n,o=t.data,i=t.headers,a=t.responseType;function s(){t.cancelToken&&t.cancelToken.unsubscribe(n),t.signal&&t.signal.removeEventListener("abort",n)}U.isFormData(o)&&U.isStandardBrowserEnv()&&delete i["Content-Type"];var l=new XMLHttpRequest;if(t.auth){var c=t.auth.username||"",u=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";i.Authorization="Basic "+btoa(c+":"+u)}var f=Y(t.baseURL,t.url);function d(){if(l){var n,o,i,c,u,f="getAllResponseHeaders"in l?(n=l.getAllResponseHeaders(),u={},n?(U.forEach(n.split("\n"),(function(t){if(c=t.indexOf(":"),o=U.trim(t.substr(0,c)).toLowerCase(),i=U.trim(t.substr(c+1)),o){if(u[o]&&Z.indexOf(o)>=0)return;u[o]="set-cookie"===o?(u[o]?u[o]:[]).concat([i]):u[o]?u[o]+", "+i:i}})),u):u):null;!function(t,e,r){var n=r.config.validateStatus;r.status&&n&&!n(r.status)?e(new X("Request failed with status code "+r.status,[X.ERR_BAD_REQUEST,X.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):t(r)}((function(t){e(t),s()}),(function(t){r(t),s()}),{data:a&&"text"!==a&&"json"!==a?l.response:l.responseText,status:l.status,statusText:l.statusText,headers:f,config:t,request:l}),l=null}}if(l.open(t.method.toUpperCase(),F(f,t.params,t.paramsSerializer),!0),l.timeout=t.timeout,"onloadend"in l?l.onloadend=d:l.onreadystatechange=function(){l&&4===l.readyState&&(0!==l.status||l.responseURL&&0===l.responseURL.indexOf("file:"))&&setTimeout(d)},l.onabort=function(){l&&(r(new X("Request aborted",X.ECONNABORTED,t,l)),l=null)},l.onerror=function(){r(new X("Network Error",X.ERR_NETWORK,t,l,l)),l=null},l.ontimeout=function(){var e=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded";t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),r(new X(e,(t.transitional||K).clarifyTimeoutError?X.ETIMEDOUT:X.ECONNABORTED,t,l)),l=null},U.isStandardBrowserEnv()){var p=(t.withCredentials||Q(f))&&t.xsrfCookieName?V.read(t.xsrfCookieName):void 0;p&&(i[t.xsrfHeaderName]=p)}"setRequestHeader"in l&&U.forEach(i,(function(t,e){void 0===o&&"content-type"===e.toLowerCase()?delete i[e]:l.setRequestHeader(e,t)})),U.isUndefined(t.withCredentials)||(l.withCredentials=!!t.withCredentials),a&&"json"!==a&&(l.responseType=t.responseType),"function"==typeof t.onDownloadProgress&&l.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&l.upload&&l.upload.addEventListener("progress",t.onUploadProgress),(t.cancelToken||t.signal)&&(n=function(t){l&&(r(!t||t&&t.type?new tt:t),l.abort(),l=null)},t.cancelToken&&t.cancelToken.subscribe(n),t.signal&&(t.signal.aborted?n():t.signal.addEventListener("abort",n))),o||(o=null);var h,m=(h=/^([-+\w]{1,25})(:?\/\/|:)/.exec(f))&&h[1]||"";m&&-1===["http","https","file"].indexOf(m)?r(new X("Unsupported protocol "+m+":",X.ERR_BAD_REQUEST,t)):l.send(o)}))}),nt),transformRequest:[function(t,e){if(J(e,"Accept"),J(e,"Content-Type"),U.isFormData(t)||U.isArrayBuffer(t)||U.isBuffer(t)||U.isStream(t)||U.isFile(t)||U.isBlob(t))return t;if(U.isArrayBufferView(t))return t.buffer;if(U.isURLSearchParams(t))return rt(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString();var r,n=U.isObject(t),o=e&&e["Content-Type"];if((r=U.isFileList(t))||n&&"multipart/form-data"===o){var i=this.env&&this.env.FormData;return W(r?{"files[]":t}:t,i&&new i)}return n||"application/json"===o?(rt(e,"application/json"),function(t){if(U.isString(t))try{return(0,JSON.parse)(t),U.trim(t)}catch(t){if("SyntaxError"!==t.name)throw t}return(0,JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){var e=this.transitional||ot.transitional,r=!(e&&e.silentJSONParsing)&&"json"===this.responseType;if(r||e&&e.forcedJSONParsing&&U.isString(t)&&t.length)try{return JSON.parse(t)}catch(t){if(r){if("SyntaxError"===t.name)throw X.from(t,X.ERR_BAD_RESPONSE,this,null,this.response);throw t}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:null},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};U.forEach(["delete","get","head"],(function(t){ot.headers[t]={}})),U.forEach(["post","put","patch"],(function(t){ot.headers[t]=U.merge(et)}));var it=ot,at=function(t,e,r){var n=this||it;return U.forEach(r,(function(r){t=r.call(n,t,e)})),t},st=function(t){return!(!t||!t.__CANCEL__)};function lt(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new tt}var ct=function(t){return lt(t),t.headers=t.headers||{},t.data=at.call(t,t.data,t.headers,t.transformRequest),t.headers=U.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),U.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]})),(t.adapter||it.adapter)(t).then((function(e){return lt(t),e.data=at.call(t,e.data,e.headers,t.transformResponse),e}),(function(e){return st(e)||(lt(t),e&&e.response&&(e.response.data=at.call(t,e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)}))},ut=function(t,e){e=e||{};var r={};function n(t,e){return U.isPlainObject(t)&&U.isPlainObject(e)?U.merge(t,e):U.isPlainObject(e)?U.merge({},e):U.isArray(e)?e.slice():e}function o(r){return U.isUndefined(e[r])?U.isUndefined(t[r])?void 0:n(void 0,t[r]):n(t[r],e[r])}function i(t){if(!U.isUndefined(e[t]))return n(void 0,e[t])}function a(r){return U.isUndefined(e[r])?U.isUndefined(t[r])?void 0:n(void 0,t[r]):n(void 0,e[r])}function s(r){return r in e?n(t[r],e[r]):r in t?n(void 0,t[r]):void 0}var l={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s};return U.forEach(Object.keys(t).concat(Object.keys(e)),(function(t){var e=l[t]||o,n=e(t);U.isUndefined(n)&&e!==s||(r[t]=n)})),r},ft={};["object","boolean","number","function","string","symbol"].forEach((function(t,e){ft[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}}));var dt={};ft.transitional=function(t,e,r){function n(t,e){return"[Axios v0.27.2] Transitional option '"+t+"'"+e+(r?". "+r:"")}return function(r,o,i){if(!1===t)throw new X(n(o," has been removed"+(e?" in "+e:"")),X.ERR_DEPRECATED);return e&&!dt[o]&&(dt[o]=!0,console.warn(n(o," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(r,o,i)}};var pt={assertOptions:function(t,e,r){if("object"!=typeof t)throw new X("options must be an object",X.ERR_BAD_OPTION_VALUE);for(var n=Object.keys(t),o=n.length;o-- >0;){var i=n[o],a=e[i];if(a){var s=t[i],l=void 0===s||a(s,i,t);if(!0!==l)throw new X("option "+i+" must be "+l,X.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new X("Unknown option "+i,X.ERR_BAD_OPTION)}},validators:ft},ht=pt.validators;function mt(t){this.defaults=t,this.interceptors={request:new H,response:new H}}mt.prototype.request=function(t,e){"string"==typeof t?(e=e||{}).url=t:e=t||{},(e=ut(this.defaults,e)).method=e.method?e.method.toLowerCase():this.defaults.method?this.defaults.method.toLowerCase():"get";var r=e.transitional;void 0!==r&&pt.assertOptions(r,{silentJSONParsing:ht.transitional(ht.boolean),forcedJSONParsing:ht.transitional(ht.boolean),clarifyTimeoutError:ht.transitional(ht.boolean)},!1);var n=[],o=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(o=o&&t.synchronous,n.unshift(t.fulfilled,t.rejected))}));var i,a=[];if(this.interceptors.response.forEach((function(t){a.push(t.fulfilled,t.rejected)})),!o){var s=[ct,void 0];for(Array.prototype.unshift.apply(s,n),s=s.concat(a),i=Promise.resolve(e);s.length;)i=i.then(s.shift(),s.shift());return i}for(var l=e;n.length;){var c=n.shift(),u=n.shift();try{l=c(l)}catch(t){u(t);break}}try{i=ct(l)}catch(t){return Promise.reject(t)}for(;a.length;)i=i.then(a.shift(),a.shift());return i},mt.prototype.getUri=function(t){t=ut(this.defaults,t);var e=Y(t.baseURL,t.url);return F(e,t.params,t.paramsSerializer)},U.forEach(["delete","get","head","options"],(function(t){mt.prototype[t]=function(e,r){return this.request(ut(r||{},{method:t,url:e,data:(r||{}).data}))}})),U.forEach(["post","put","patch"],(function(t){function e(e){return function(r,n,o){return this.request(ut(o||{},{method:t,headers:e?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}mt.prototype[t]=e(),mt.prototype[t+"Form"]=e(!0)}));var wt=mt;function vt(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise((function(t){e=t}));var r=this;this.promise.then((function(t){if(r._listeners){var e,n=r._listeners.length;for(e=0;e<n;e++)r._listeners[e](t);r._listeners=null}})),this.promise.then=function(t){var e,n=new Promise((function(t){r.subscribe(t),e=t})).then(t);return n.cancel=function(){r.unsubscribe(e)},n},t((function(t){r.reason||(r.reason=new tt(t),e(r.reason))}))}vt.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},vt.prototype.subscribe=function(t){this.reason?t(this.reason):this._listeners?this._listeners.push(t):this._listeners=[t]},vt.prototype.unsubscribe=function(t){if(this._listeners){var e=this._listeners.indexOf(t);-1!==e&&this._listeners.splice(e,1)}},vt.source=function(){var t;return{token:new vt((function(e){t=e})),cancel:t}};var gt=vt,bt=function t(e){var r=new wt(e),n=b(wt.prototype.request,r);return U.extend(n,wt.prototype,r),U.extend(n,r),n.create=function(r){return t(ut(e,r))},n}(it);bt.Axios=wt,bt.CanceledError=tt,bt.CancelToken=gt,bt.isCancel=st,bt.VERSION="0.27.2",bt.toFormData=W,bt.AxiosError=X,bt.Cancel=bt.CanceledError,bt.all=function(t){return Promise.all(t)},bt.spread=function(t){return function(e){return t.apply(null,e)}},bt.isAxiosError=function(t){return U.isObject(t)&&!0===t.isAxiosError};var yt=bt;yt.default=bt;var xt=yt;const Ct={list:[],keys:[],locs:[],loading:!1,solved:!1,error:void 0,pick:void 0,data:void 0},{state:kt}=(()=>{const t=((t,e=((t,e)=>t!==e))=>{const r=v(t);let n=new Map(Object.entries(null!=r?r:{}));const o={dispose:[],get:[],set:[],reset:[]},i=()=>{var e;n=new Map(Object.entries(null!==(e=v(t))&&void 0!==e?e:{})),o.reset.forEach((t=>t()))},a=t=>(o.get.forEach((e=>e(t))),n.get(t)),s=(t,r)=>{const i=n.get(t);e(r,i,t)&&(n.set(t,r),o.set.forEach((e=>e(t,r,i))))},l="undefined"==typeof Proxy?{}:new Proxy(r,{get:(t,e)=>a(e),ownKeys:()=>Array.from(n.keys()),getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0}),has:(t,e)=>n.has(e),set:(t,e,r)=>(s(e,r),!0)}),c=(t,e)=>(o[t].push(e),()=>{((t,e)=>{const r=t.indexOf(e);r>=0&&(t[r]=t[t.length-1],t.length--)})(o[t],e)});return{state:l,get:a,set:s,on:c,onChange:(e,r)=>{const n=c("set",((t,n)=>{t===e&&r(n)})),o=c("reset",(()=>r(v(t)[e])));return()=>{n(),o()}},use:(...t)=>{const e=t.reduce(((t,e)=>(e.set&&t.push(c("set",e.set)),e.get&&t.push(c("get",e.get)),e.reset&&t.push(c("reset",e.reset)),e.dispose&&t.push(c("dispose",e.dispose)),t)),[]);return()=>e.forEach((t=>t()))},dispose:()=>{o.dispose.forEach((t=>t())),i()},reset:i,forceUpdate:t=>{const e=n.get(t);o.set.forEach((r=>r(t,e,e)))}}})(Ct,void 0);return t.use((()=>{if("function"!=typeof e)return{};const t=new Map;return{dispose:()=>t.clear(),get:r=>{const n=e();n&&((t,e,r)=>{const n=t.get(e);n?n.includes(r)||n.push(r):t.set(e,[r])})(t,r,n)},set:e=>{const n=t.get(e);n&&t.set(e,n.filter(r)),w(t)},reset:()=>{t.forEach((t=>t.forEach(r))),w(t)}}})()),t})(),Ot=new Map([["row",new Map],["column",new Map],["box",new Map]]),Rt=["1","2","3","4","5","6","7","8","9"],Et=t=>{if(void 0!==t&&t.indx!=kt.pick){const{isClue:e,indx:r,row:n,column:o,box:i}=t,a=((t,e,r,n)=>{const o=new Map([["row",e],["column",r],["box",n]]),i=new Set;return o.forEach(((e,r)=>{Ot.get(r).get(e).forEach((e=>{e!==t&&i.add(e)}))})),Array.from(i)})(r,n,o,i),s=e?[]:(t=>{const{list:e}=kt,r=new Set;return t.map((t=>{const{key:n}=e[t];"."!=n&&r.add(n)})),Rt.filter((t=>!r.has(t)))})(a);kt.pick=r,kt.keys=s,kt.locs=a}else kt.pick=void 0,kt.keys=[],kt.locs=[];St(kt.pick)},jt=xt.create({baseURL:"https://sudoku-rust-api.vercel.app/api/",timeout:1e4,headers:{"X-Custom-Header":"foobar"}}),At=t=>{d(t)},St=t=>{h(t)},Nt=(t=!1)=>{kt.list=[],kt.keys=[],kt.locs=[],kt.loading=t,kt.solved=!1,kt.error=void 0,kt.pick=void 0,kt.data=void 0},Mt=(t,e=!0)=>{const{puzzle:r,ref:n}=t;e&&(d([]),u(a,t)),(t=>{if(t){const{puzzle:e,ref:r}=t,n=e?[...e]:[],o=r?atob(r):void 0,i=o?[...o]:[],a=n.map(((t,e)=>{const r=i[e],n=t===r,o=Math.floor(e/9),a=e%9,s=((t,e)=>e<3?t<3?0:t<6?3:6:e<6?t<3?1:t<6?4:7:t<3?2:t<6?5:8)(o,a);return((t,e,r,n)=>{new Map([["row",e],["column",r],["box",n]]).forEach(((e,r)=>{const n=Ot.get(r);n.has(e)?n.get(e).add(t):n.set(e,new Set([t]))}))})(e,o,a,s),{key:t,isClue:n,value:r,indx:e,row:o,column:a,box:s}}));(t=>{f().forEach(((e,r)=>{const n=t[r],{isClue:o}=n;o||(n.key=e)}))})(a),kt.data=t,kt.list=a}else kt.data=void 0,kt.list=[]})({puzzle:r,ref:n})},zt=t=>{kt.list=[...t],t.length=0},Bt={initApp:()=>{Nt();const t=c(a),e=p();if(t&&(Mt(t,!1),e>=0)){const{list:t}=kt;Et(t[e])}},refresh:()=>{Nt(!0),At([]),St(kt.pick),jt.get("/puzzle").then((({data:t})=>{Mt(t)})).catch((t=>{const{message:e}=t;console.log("-- ",e),console.log(t),kt.error=e})).then((()=>{kt.loading=!1}))},select:t=>{Et(t)},check:()=>{const{list:t}=kt,e=[];let r=0,n=0,o=0;t.forEach((t=>{const{key:i,value:a,isClue:s}=t;s?o+=1:"."!==i&&(i!==a?(r+=1,t.key="."):n+=1),e.push(t.key)}));const i=o+n;At(n?e:[]),r>0?zt(t):81===i&&(kt.solved=!0)},input:t=>{const{pick:e,list:r}=kt;r[e].key=t,zt(r)}},Tt=(...t)=>t.filter(Boolean).join(" "),Pt=e=>{const r=e.hex||"currentColor",n=e.label||"loading...",o=e.size||24;return t("svg",{class:Tt(e.class||"","animate-spin"),width:o,height:o,fill:"none",viewBox:"0 0 24 24",role:"img","aria-label":"title"},t("title",null,n),t("g",null,t("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:r,"stroke-width":"4"}),t("path",{class:"opacity-75",fill:r,d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})),t("path",{d:"M0 0h24v24H0z",fill:"none"}))},Dt=e=>{const{message:r,salute:n,spinner:i=!1}=e;return t("div",{class:"mt-5 flex h-24px flex-row items-center"},t(i?Pt:o,{class:"mr-2"}),n?t("label",{class:"mr-1 font-bold"},n,":"):"",t("label",{class:"italic"},r))},Ut=()=>{const{solved:e,loading:r,error:n}=kt;return t("div",{class:"flex flex-col"},r||n||e?"":t(Dt,{message:"Welcome, are you ready to play?..."}),r?t(Dt,{message:"Loading...",spinner:!0}):"",n?t(Dt,{message:n,salute:"ERROR"}):"",e?t(Dt,{message:"You solved the puzzle!!"}):"")},_t=e=>{const r=e.hex||"currentColor",n=e.size||24;return t("svg",{class:e.class,width:n,height:n,viewBox:"0 0 24 24",role:"img","aria-label":"title"},t("title",null,e.label||"fingerprint"),t("g",{fill:r},t("path",{d:"M17.81,4.47C17.73,4.47 17.65,4.45 17.58,4.41C15.66,3.42 14,3\n 12,3C10.03,3 8.15,3.47 6.44,4.41C6.2,4.54 5.9,4.45 5.76,4.21C5.63,3.97\n 5.72,3.66 5.96,3.53C7.82,2.5 9.86,2 12,2C14.14,2 16,2.47\n 18.04,3.5C18.29,3.65 18.38,3.95 18.25,4.19C18.16,4.37 18,4.47\n 17.81,4.47M3.5,9.72C3.4,9.72 3.3,9.69 3.21,9.63C3,9.47 2.93,9.16\n 3.09,8.93C4.08,7.53 5.34,6.43 6.84,5.66C10,4.04 14,4.03\n 17.15,5.65C18.65,6.42 19.91,7.5 20.9,8.9C21.06,9.12 21,9.44\n 20.78,9.6C20.55,9.76 20.24,9.71 20.08,9.5C19.18,8.22 18.04,7.23\n 16.69,6.54C13.82,5.07 10.15,5.07 7.29,6.55C5.93,7.25 4.79,8.25\n 3.89,9.5C3.81,9.65 3.66,9.72 3.5,9.72M9.75,21.79C9.62,21.79 9.5,21.74\n 9.4,21.64C8.53,20.77 8.06,20.21 7.39,19C6.7,17.77 6.34,16.27\n 6.34,14.66C6.34,11.69 8.88,9.27 12,9.27C15.12,9.27 17.66,11.69\n 17.66,14.66A0.5,0.5 0 0,1 17.16,15.16A0.5,0.5 0 0,1\n 16.66,14.66C16.66,12.24 14.57,10.27 12,10.27C9.43,10.27 7.34,12.24\n 7.34,14.66C7.34,16.1 7.66,17.43 8.27,18.5C8.91,19.66 9.35,20.15\n 10.12,20.93C10.31,21.13 10.31,21.44 10.12,21.64C10,21.74 9.88,21.79\n 9.75,21.79M16.92,19.94C15.73,19.94 14.68,19.64 13.82,19.05C12.33,18.04\n 11.44,16.4 11.44,14.66A0.5,0.5 0 0,1 11.94,14.16A0.5,0.5 0 0,1\n 12.44,14.66C12.44,16.07 13.16,17.4 14.38,18.22C15.09,18.7 15.92,18.93\n 16.92,18.93C17.16,18.93 17.56,18.9 17.96,18.83C18.23,18.78 18.5,18.96\n 18.54,19.24C18.59,19.5 18.41,19.77 18.13,19.82C17.56,19.93 17.06,19.94\n 16.92,19.94M14.91,22C14.87,22 14.82,22 14.78,22C13.19,21.54 12.15,20.95\n 11.06,19.88C9.66,18.5 8.89,16.64 8.89,14.66C8.89,13.04 10.27,11.72\n 11.97,11.72C13.67,11.72 15.05,13.04 15.05,14.66C15.05,15.73 16,16.6\n 17.13,16.6C18.28,16.6 19.21,15.73 19.21,14.66C19.21,10.89 15.96,7.83\n 11.96,7.83C9.12,7.83 6.5,9.41 5.35,11.86C4.96,12.67 4.76,13.62\n 4.76,14.66C4.76,15.44 4.83,16.67 5.43,18.27C5.53,18.53 5.4,18.82\n 5.14,18.91C4.88,19 4.59,18.87 4.5,18.62C4,17.31 3.77,16\n 3.77,14.66C3.77,13.46 4,12.37 4.45,11.42C5.78,8.63 8.73,6.82\n 11.96,6.82C16.5,6.82 20.21,10.33 20.21,14.65C20.21,16.27 18.83,17.59\n 17.13,17.59C15.43,17.59 14.05,16.27 14.05,14.65C14.05,13.58 13.12,12.71\n 11.97,12.71C10.82,12.71 9.89,13.58 9.89,14.65C9.89,16.36 10.55,17.96\n 11.76,19.16C12.71,20.1 13.62,20.62 15.03,21C15.3,21.08 15.45,21.36\n 15.38,21.62C15.33,21.85 15.12,22 14.91,22Z"})),t("path",{d:"M0 0h24v24H0z",fill:"none"}))},Ft="eswat2",Lt=()=>t("a",{class:"absolute top-0 right-0 text-clrs-gray hover:text-clrs-navy",href:"https://eswat2.dev","aria-label":Ft,title:Ft},t(_t,{label:Ft})),Ht=(e,r)=>t("h1",{class:Tt("text-center uppercase text-clrs-red","mr-0 ml-0 mt-11 mb-11","text-6xl font-thin")},r),Jt=e=>{const{label:r,callback:n,matched:o=!1}=e;return t("button",{class:Tt("rounded-md border border-solid border-clrs-slate4 font-bold","Check ?"===r?"mr-2 bg-clrs-yellow px-3 py-2 text-clrs-navy":"New Puzzle"===r?"mr-2 bg-clrs-navy px-3 py-2 text-white":"x"===r?"mr-1 bg-clrs-red px-2 py-1 text-white":o?"mr-1 bg-clrs-slate4 px-2 py-1 text-white":"mr-1 bg-gray-50 px-2 py-1 text-clrs-navy"),onClick:n},r)},It=()=>{const{keys:e,list:r,pick:n,solved:o}=kt,i=t=>()=>{Bt.input(t)},a=o?[]:e,s=null!=n?r[n]:void 0;return t("div",{class:"mt-2 flex flex-row justify-end"},o||!s||s.isClue||"."==s.key?"":t(Jt,{label:"x",callback:i(".")}),a.map((e=>t(Jt,{label:e,callback:i(e),matched:s.key===e}))))},qt=[2,5,11,14,20,23,29,32,38,41,47,50,56,59,65,68,74,77],$t=qt.map((t=>t+1)),Xt=[18,19,20,21,22,23,24,25,26,45,46,47,48,49,50,51,52,53],Kt=Xt.map((t=>t+9)),Wt=e=>{const{cell:r,selected:n,ref:o,solved:i}=e,{key:a,isClue:s,indx:l}=r,c="."!=a?a:"";return t("label",{class:Tt(`cell-${l}`,qt.includes(l)?"border-xbr-clrs-navy":"",$t.includes(l)?"border-xbl-clrs-navy":"",Xt.includes(l)?"border-xbb-clrs-navy":"",Kt.includes(l)?"border-xbt-clrs-navy":"","h-8 w-8 border border-solid text-center leading-8",n?"border-clrs-red bg-clrs-red-a50 text-clrs-red":o?"border-clrs-gray bg-clrs-green-a50 font-bold":s?"border-clrs-gray bg-clrs-silver":""!==c?"border-clrs-gray text-clrs-red":"border-clrs-gray"),onClick:((t,e)=>()=>{e||Bt.select(t)})(r,i)},c)},Vt=()=>{const{list:e,pick:r,locs:n,solved:o}=kt;return t("div",{class:Tt("flex flex-row flex-wrap","border border-solid border-clrs-navy","h-76p5 w-76p5 text-lg")},e.map(((e,i)=>{const a=!o&&i===r,s=!o&&n.includes(i);return t(Wt,{cell:e,selected:a,ref:s,solved:o})})))},Yt=()=>t("label",{class:"ml-auto align-top text-xs italic text-clrs-slate4"},"Tailwind ","3.1.8"),Zt=t=>()=>{t.refresh()},Qt=t=>()=>{t.check()},Gt=()=>{const{list:e,solved:r}=kt;return t("div",{class:"flex flex-row"},t(Jt,{label:"New Puzzle",callback:Zt(Bt)}),81!==e.length||r?"":t(Jt,{label:"Check ?",callback:Qt(Bt)}),t(Yt,null))},te=class{constructor(t){n(this,t),this.tag="proto-sudoku"}componentDidLoad(){Bt.initApp()}render(){return t("div",{id:"app",class:"ds1-main relative max-w-min p-0.5"},t(Lt,null),t(Ht,null,"Sudoku"),t(Vt,null),t(It,null),t("hr",{class:"ml-0 mr-0"}),t(Gt,null),t(Ut,null))}};te.style="*,::before,::after{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scroll-snap-strictness:proximity;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgb(59 130 246 / 0.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;}::-webkit-backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scroll-snap-strictness:proximity;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgb(59 130 246 / 0.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;}::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scroll-snap-strictness:proximity;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgb(59 130 246 / 0.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;}.ds1-main{margin:1.5rem;display:flex;flex-direction:column;font-family:ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,\n 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif,\n 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';color:var(--clrs-navy, #001f3f);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.absolute{position:absolute}.relative{position:relative}.top-0{top:0px}.right-0{right:0px}.mt-5{margin-top:1.25rem}.mr-2{margin-right:0.5rem}.mr-1{margin-right:0.25rem}.mr-0{margin-right:0px}.ml-0{margin-left:0px}.mt-11{margin-top:2.75rem}.mb-11{margin-bottom:2.75rem}.mt-2{margin-top:0.5rem}.ml-auto{margin-left:auto}.flex{display:flex}.h-24px{height:24px}.h-8{height:2rem}.h-76p5{height:19.125rem}.w-8{width:2rem}.w-76p5{width:19.125rem}.max-w-min{max-width:-webkit-min-content;max-width:-moz-min-content;max-width:min-content}@-webkit-keyframes spin{to{transform:rotate(360deg)}}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{-webkit-animation:spin 1s linear infinite;animation:spin 1s linear infinite}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.justify-end{justify-content:flex-end}.rounded-md{border-radius:0.375rem}.border{border-width:1px}.border-solid{border-style:solid}.border-clrs-slate4{border-color:var(--clrs-slate4, #4e5964)}.border-clrs-red{border-color:var(--clrs-red, #ff4136)}.border-clrs-gray{border-color:var(--clrs-gray, #aaaaaa)}.border-clrs-navy{border-color:var(--clrs-navy, #001f3f)}.bg-clrs-yellow{background-color:var(--clrs-yellow, #ffdc00)}.bg-clrs-navy{background-color:var(--clrs-navy, #001f3f)}.bg-clrs-red{background-color:var(--clrs-red, #ff4136)}.bg-clrs-slate4{background-color:var(--clrs-slate4, #4e5964)}.bg-gray-50{--tw-bg-opacity:1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.bg-clrs-red-a50{background-color:var(--clrs-red-a50, #ff413650)}.bg-clrs-green-a50{background-color:var(--clrs-green-a50, #2ecc4050)}.bg-clrs-silver{background-color:var(--clrs-silver, #dddddd)}.p-0\\.5{padding:0.125rem}.p-0{padding:0px}.px-3{padding-left:0.75rem;padding-right:0.75rem}.py-2{padding-top:0.5rem;padding-bottom:0.5rem}.px-2{padding-left:0.5rem;padding-right:0.5rem}.py-1{padding-top:0.25rem;padding-bottom:0.25rem}.text-center{text-align:center}.align-top{vertical-align:top}.text-6xl{font-size:3.75rem;line-height:1}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-xs{font-size:0.75rem;line-height:1rem}.font-bold{font-weight:700}.font-thin{font-weight:100}.uppercase{text-transform:uppercase}.italic{font-style:italic}.leading-8{line-height:2rem}.text-clrs-navy{color:var(--clrs-navy, #001f3f)}.text-white{--tw-text-opacity:1;color:rgb(255 255 255 / var(--tw-text-opacity))}.text-clrs-red{color:var(--clrs-red, #ff4136)}.text-clrs-gray{color:var(--clrs-gray, #aaaaaa)}.text-clrs-slate4{color:var(--clrs-slate4, #4e5964)}.opacity-25{opacity:0.25}.opacity-75{opacity:0.75}.shadow{--tw-shadow:0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),\n 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),\n var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.border-xbb-clrs-navy{border-bottom:1px solid var(--clrs-navy, #001f3f) !important}.border-xbt-clrs-navy{border-top:1px solid var(--clrs-navy, #001f3f) !important}.border-xbl-clrs-navy{border-left:1px solid var(--clrs-navy, #001f3f) !important}.border-xbr-clrs-navy{border-right:1px solid var(--clrs-navy, #001f3f) !important}.hover\\:text-clrs-navy:hover{color:var(--clrs-navy, #001f3f)}";export{te as proto_sudoku}
|
1
|
+
import{h as t,g as e,f as r,r as n}from"./p-3561d2f7.js";const o=e=>{const r=e.hex||"currentColor",n=e.size||24;return t("svg",{class:e.class,width:n,height:n,viewBox:"0 0 24 24",role:"img","aria-label":"title"},t("title",null,e.label||"alien"),t("g",{fill:r},t("path",{d:"M10.31 10.93C11.33 12.57 11.18 14.5 9.96 15.28C8.74 16.04 6.92 15.33\n 5.89 13.69C4.87 12.05 5.03 10.1 6.25 9.34C7.47 8.58 9.29 9.29 10.31\n 10.93M12 17.75C14 17.75 14.5 17 14.5 17C14.5 17 14 19 12 19C10 19 9.5\n 17.03 9.5 17C9.5 17 10 17.75 12 17.75M17.75 9.34C18.97 10.1 19.13 12.05\n 18.11 13.69C17.08 15.33 15.26 16.04 14.04 15.28C12.82 14.5 12.67 12.57\n 13.69 10.93C14.71 9.29 16.53 8.58 17.75 9.34M12 20C14.5 20 20 14.86 20\n 11C20 7.14 16.41 4 12 4C7.59 4 4 7.14 4 11C4 14.86 9.5 20 12 20M12 2C17.5\n 2 22 6.04 22 11C22 15.08 16.32 22 12 22C7.68 22 2 15.08 2 11C2 6.04 6.5 2\n 12 2Z"})),t("path",{d:"M0 0h24v24H0z",fill:"none"}))},i="proto-sudoku",a=`${i}::data`,s=`${i}::inputs`,l=`${i}::pick`,c=t=>{const e=localStorage.getItem(t);return e?JSON.parse(e):void 0},u=(t,e)=>{const r=JSON.stringify(e);localStorage.setItem(t,r)},f=()=>[...c(s)],d=t=>{u(s,t.join(""))},p=()=>{const t=c(l);return null!==t?t:void 0},h=t=>{u(l,t>=0&&t<81?t:null)},m=t=>!("isConnected"in t)||t.isConnected,v=(()=>{let t;return(...e)=>{t&&clearTimeout(t),t=setTimeout((()=>{t=0,(t=>{for(let e of t.keys())t.set(e,t.get(e).filter(m))})(...e)}),2e3)}})(),g=t=>"function"==typeof t?t():t;var w,b=function(t,e){return function(){for(var r=new Array(arguments.length),n=0;n<r.length;n++)r[n]=arguments[n];return t.apply(e,r)}},y=Object.prototype.toString,x=(w=Object.create(null),function(t){var e=y.call(t);return w[e]||(w[e]=e.slice(8,-1).toLowerCase())});function C(t){return t=t.toLowerCase(),function(e){return x(e)===t}}function k(t){return Array.isArray(t)}function O(t){return void 0===t}var R=C("ArrayBuffer");function E(t){return null!==t&&"object"==typeof t}function j(t){if("object"!==x(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}var A=C("Date"),S=C("File"),N=C("Blob"),M=C("FileList");function z(t){return"[object Function]"===y.call(t)}var B=C("URLSearchParams");function T(t,e){if(null!=t)if("object"!=typeof t&&(t=[t]),k(t))for(var r=0,n=t.length;r<n;r++)e.call(null,t[r],r,t);else for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.call(null,t[o],o,t)}var P,D=(P="undefined"!=typeof Uint8Array&&Object.getPrototypeOf(Uint8Array),function(t){return P&&t instanceof P}),U={isArray:k,isArrayBuffer:R,isBuffer:function(t){return null!==t&&!O(t)&&null!==t.constructor&&!O(t.constructor)&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)},isFormData:function(t){var e="[object FormData]";return t&&("function"==typeof FormData&&t instanceof FormData||y.call(t)===e||z(t.toString)&&t.toString()===e)},isArrayBufferView:function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&R(t.buffer)},isString:function(t){return"string"==typeof t},isNumber:function(t){return"number"==typeof t},isObject:E,isPlainObject:j,isUndefined:O,isDate:A,isFile:S,isBlob:N,isFunction:z,isStream:function(t){return E(t)&&z(t.pipe)},isURLSearchParams:B,isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:T,merge:function t(){var e={};function r(r,n){e[n]=j(e[n])&&j(r)?t(e[n],r):j(r)?t({},r):k(r)?r.slice():r}for(var n=0,o=arguments.length;n<o;n++)T(arguments[n],r);return e},extend:function(t,e,r){return T(e,(function(e,n){t[n]=r&&"function"==typeof e?b(e,r):e})),t},trim:function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")},stripBOM:function(t){return 65279===t.charCodeAt(0)&&(t=t.slice(1)),t},inherits:function(t,e,r,n){t.prototype=Object.create(e.prototype,n),t.prototype.constructor=t,r&&Object.assign(t.prototype,r)},toFlatObject:function(t,e,r){var n,o,i,a={};e=e||{};do{for(o=(n=Object.getOwnPropertyNames(t)).length;o-- >0;)a[i=n[o]]||(e[i]=t[i],a[i]=!0);t=Object.getPrototypeOf(t)}while(t&&(!r||r(t,e))&&t!==Object.prototype);return e},kindOf:x,kindOfTest:C,endsWith:function(t,e,r){t=String(t),(void 0===r||r>t.length)&&(r=t.length);var n=t.indexOf(e,r-=e.length);return-1!==n&&n===r},toArray:function(t){if(!t)return null;var e=t.length;if(O(e))return null;for(var r=new Array(e);e-- >0;)r[e]=t[e];return r},isTypedArray:D,isFileList:M};function _(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var F=function(t,e,r){if(!e)return t;var n;if(r)n=r(e);else if(U.isURLSearchParams(e))n=e.toString();else{var o=[];U.forEach(e,(function(t,e){null!=t&&(U.isArray(t)?e+="[]":t=[t],U.forEach(t,(function(t){U.isDate(t)?t=t.toISOString():U.isObject(t)&&(t=JSON.stringify(t)),o.push(_(e)+"="+_(t))})))})),n=o.join("&")}if(n){var i=t.indexOf("#");-1!==i&&(t=t.slice(0,i)),t+=(-1===t.indexOf("?")?"?":"&")+n}return t};function L(){this.handlers=[]}L.prototype.use=function(t,e,r){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1},L.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},L.prototype.forEach=function(t){U.forEach(this.handlers,(function(e){null!==e&&t(e)}))};var H=L,J=function(t,e){U.forEach(t,(function(r,n){n!==e&&n.toUpperCase()===e.toUpperCase()&&(t[e]=r,delete t[n])}))};function I(t,e,r,n,o){Error.call(this),this.message=t,this.name="AxiosError",e&&(this.code=e),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o)}U.inherits(I,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var q=I.prototype,$={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach((function(t){$[t]={value:t}})),Object.defineProperties(I,$),Object.defineProperty(q,"isAxiosError",{value:!0}),I.from=function(t,e,r,n,o,i){var a=Object.create(q);return U.toFlatObject(t,a,(function(t){return t!==Error.prototype})),I.call(a,t.message,e,r,n,o),a.name=t.name,i&&Object.assign(a,i),a};var X=I,K={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},W=function(t,e){e=e||new FormData;var r=[];function n(t){return null===t?"":U.isDate(t)?t.toISOString():U.isArrayBuffer(t)||U.isTypedArray(t)?"function"==typeof Blob?new Blob([t]):Buffer.from(t):t}return function t(o,i){if(U.isPlainObject(o)||U.isArray(o)){if(-1!==r.indexOf(o))throw Error("Circular reference detected in "+i);r.push(o),U.forEach(o,(function(r,o){if(!U.isUndefined(r)){var a,s=i?i+"."+o:o;if(r&&!i&&"object"==typeof r)if(U.endsWith(o,"{}"))r=JSON.stringify(r);else if(U.endsWith(o,"[]")&&(a=U.toArray(r)))return void a.forEach((function(t){!U.isUndefined(t)&&e.append(s,n(t))}));t(r,s)}})),r.pop()}else e.append(i,n(o))}(t),e},V=U.isStandardBrowserEnv()?{write:function(t,e,r,n,o,i){var a=[];a.push(t+"="+encodeURIComponent(e)),U.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),U.isString(n)&&a.push("path="+n),U.isString(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}},Y=function(t,e){return t&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)?function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}(t,e):e},Z=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"],Q=U.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function n(t){var n=t;return e&&(r.setAttribute("href",n),n=r.href),r.setAttribute("href",n),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return t=n(window.location.href),function(e){var r=U.isString(e)?n(e):e;return r.protocol===t.protocol&&r.host===t.host}}():function(){return!0};function G(t){X.call(this,null==t?"canceled":t,X.ERR_CANCELED),this.name="CanceledError"}U.inherits(G,X,{__CANCEL__:!0});var tt=G,et={"Content-Type":"application/x-www-form-urlencoded"};function rt(t,e){!U.isUndefined(t)&&U.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var nt,ot={transitional:K,adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(nt=function(t){return new Promise((function(e,r){var n,o=t.data,i=t.headers,a=t.responseType;function s(){t.cancelToken&&t.cancelToken.unsubscribe(n),t.signal&&t.signal.removeEventListener("abort",n)}U.isFormData(o)&&U.isStandardBrowserEnv()&&delete i["Content-Type"];var l=new XMLHttpRequest;if(t.auth){var c=t.auth.username||"",u=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";i.Authorization="Basic "+btoa(c+":"+u)}var f=Y(t.baseURL,t.url);function d(){if(l){var n,o,i,c,u,f="getAllResponseHeaders"in l?(n=l.getAllResponseHeaders(),u={},n?(U.forEach(n.split("\n"),(function(t){if(c=t.indexOf(":"),o=U.trim(t.substr(0,c)).toLowerCase(),i=U.trim(t.substr(c+1)),o){if(u[o]&&Z.indexOf(o)>=0)return;u[o]="set-cookie"===o?(u[o]?u[o]:[]).concat([i]):u[o]?u[o]+", "+i:i}})),u):u):null;!function(t,e,r){var n=r.config.validateStatus;r.status&&n&&!n(r.status)?e(new X("Request failed with status code "+r.status,[X.ERR_BAD_REQUEST,X.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):t(r)}((function(t){e(t),s()}),(function(t){r(t),s()}),{data:a&&"text"!==a&&"json"!==a?l.response:l.responseText,status:l.status,statusText:l.statusText,headers:f,config:t,request:l}),l=null}}if(l.open(t.method.toUpperCase(),F(f,t.params,t.paramsSerializer),!0),l.timeout=t.timeout,"onloadend"in l?l.onloadend=d:l.onreadystatechange=function(){l&&4===l.readyState&&(0!==l.status||l.responseURL&&0===l.responseURL.indexOf("file:"))&&setTimeout(d)},l.onabort=function(){l&&(r(new X("Request aborted",X.ECONNABORTED,t,l)),l=null)},l.onerror=function(){r(new X("Network Error",X.ERR_NETWORK,t,l,l)),l=null},l.ontimeout=function(){var e=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded";t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),r(new X(e,(t.transitional||K).clarifyTimeoutError?X.ETIMEDOUT:X.ECONNABORTED,t,l)),l=null},U.isStandardBrowserEnv()){var p=(t.withCredentials||Q(f))&&t.xsrfCookieName?V.read(t.xsrfCookieName):void 0;p&&(i[t.xsrfHeaderName]=p)}"setRequestHeader"in l&&U.forEach(i,(function(t,e){void 0===o&&"content-type"===e.toLowerCase()?delete i[e]:l.setRequestHeader(e,t)})),U.isUndefined(t.withCredentials)||(l.withCredentials=!!t.withCredentials),a&&"json"!==a&&(l.responseType=t.responseType),"function"==typeof t.onDownloadProgress&&l.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&l.upload&&l.upload.addEventListener("progress",t.onUploadProgress),(t.cancelToken||t.signal)&&(n=function(t){l&&(r(!t||t&&t.type?new tt:t),l.abort(),l=null)},t.cancelToken&&t.cancelToken.subscribe(n),t.signal&&(t.signal.aborted?n():t.signal.addEventListener("abort",n))),o||(o=null);var h,m=(h=/^([-+\w]{1,25})(:?\/\/|:)/.exec(f))&&h[1]||"";m&&-1===["http","https","file"].indexOf(m)?r(new X("Unsupported protocol "+m+":",X.ERR_BAD_REQUEST,t)):l.send(o)}))}),nt),transformRequest:[function(t,e){if(J(e,"Accept"),J(e,"Content-Type"),U.isFormData(t)||U.isArrayBuffer(t)||U.isBuffer(t)||U.isStream(t)||U.isFile(t)||U.isBlob(t))return t;if(U.isArrayBufferView(t))return t.buffer;if(U.isURLSearchParams(t))return rt(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString();var r,n=U.isObject(t),o=e&&e["Content-Type"];if((r=U.isFileList(t))||n&&"multipart/form-data"===o){var i=this.env&&this.env.FormData;return W(r?{"files[]":t}:t,i&&new i)}return n||"application/json"===o?(rt(e,"application/json"),function(t){if(U.isString(t))try{return(0,JSON.parse)(t),U.trim(t)}catch(t){if("SyntaxError"!==t.name)throw t}return(0,JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){var e=this.transitional||ot.transitional,r=!(e&&e.silentJSONParsing)&&"json"===this.responseType;if(r||e&&e.forcedJSONParsing&&U.isString(t)&&t.length)try{return JSON.parse(t)}catch(t){if(r){if("SyntaxError"===t.name)throw X.from(t,X.ERR_BAD_RESPONSE,this,null,this.response);throw t}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:null},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};U.forEach(["delete","get","head"],(function(t){ot.headers[t]={}})),U.forEach(["post","put","patch"],(function(t){ot.headers[t]=U.merge(et)}));var it=ot,at=function(t,e,r){var n=this||it;return U.forEach(r,(function(r){t=r.call(n,t,e)})),t},st=function(t){return!(!t||!t.__CANCEL__)};function lt(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new tt}var ct=function(t){return lt(t),t.headers=t.headers||{},t.data=at.call(t,t.data,t.headers,t.transformRequest),t.headers=U.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),U.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]})),(t.adapter||it.adapter)(t).then((function(e){return lt(t),e.data=at.call(t,e.data,e.headers,t.transformResponse),e}),(function(e){return st(e)||(lt(t),e&&e.response&&(e.response.data=at.call(t,e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)}))},ut=function(t,e){e=e||{};var r={};function n(t,e){return U.isPlainObject(t)&&U.isPlainObject(e)?U.merge(t,e):U.isPlainObject(e)?U.merge({},e):U.isArray(e)?e.slice():e}function o(r){return U.isUndefined(e[r])?U.isUndefined(t[r])?void 0:n(void 0,t[r]):n(t[r],e[r])}function i(t){if(!U.isUndefined(e[t]))return n(void 0,e[t])}function a(r){return U.isUndefined(e[r])?U.isUndefined(t[r])?void 0:n(void 0,t[r]):n(void 0,e[r])}function s(r){return r in e?n(t[r],e[r]):r in t?n(void 0,t[r]):void 0}var l={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s};return U.forEach(Object.keys(t).concat(Object.keys(e)),(function(t){var e=l[t]||o,n=e(t);U.isUndefined(n)&&e!==s||(r[t]=n)})),r},ft={};["object","boolean","number","function","string","symbol"].forEach((function(t,e){ft[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}}));var dt={};ft.transitional=function(t,e,r){function n(t,e){return"[Axios v0.27.2] Transitional option '"+t+"'"+e+(r?". "+r:"")}return function(r,o,i){if(!1===t)throw new X(n(o," has been removed"+(e?" in "+e:"")),X.ERR_DEPRECATED);return e&&!dt[o]&&(dt[o]=!0,console.warn(n(o," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(r,o,i)}};var pt={assertOptions:function(t,e,r){if("object"!=typeof t)throw new X("options must be an object",X.ERR_BAD_OPTION_VALUE);for(var n=Object.keys(t),o=n.length;o-- >0;){var i=n[o],a=e[i];if(a){var s=t[i],l=void 0===s||a(s,i,t);if(!0!==l)throw new X("option "+i+" must be "+l,X.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new X("Unknown option "+i,X.ERR_BAD_OPTION)}},validators:ft},ht=pt.validators;function mt(t){this.defaults=t,this.interceptors={request:new H,response:new H}}mt.prototype.request=function(t,e){"string"==typeof t?(e=e||{}).url=t:e=t||{},(e=ut(this.defaults,e)).method=e.method?e.method.toLowerCase():this.defaults.method?this.defaults.method.toLowerCase():"get";var r=e.transitional;void 0!==r&&pt.assertOptions(r,{silentJSONParsing:ht.transitional(ht.boolean),forcedJSONParsing:ht.transitional(ht.boolean),clarifyTimeoutError:ht.transitional(ht.boolean)},!1);var n=[],o=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(o=o&&t.synchronous,n.unshift(t.fulfilled,t.rejected))}));var i,a=[];if(this.interceptors.response.forEach((function(t){a.push(t.fulfilled,t.rejected)})),!o){var s=[ct,void 0];for(Array.prototype.unshift.apply(s,n),s=s.concat(a),i=Promise.resolve(e);s.length;)i=i.then(s.shift(),s.shift());return i}for(var l=e;n.length;){var c=n.shift(),u=n.shift();try{l=c(l)}catch(t){u(t);break}}try{i=ct(l)}catch(t){return Promise.reject(t)}for(;a.length;)i=i.then(a.shift(),a.shift());return i},mt.prototype.getUri=function(t){t=ut(this.defaults,t);var e=Y(t.baseURL,t.url);return F(e,t.params,t.paramsSerializer)},U.forEach(["delete","get","head","options"],(function(t){mt.prototype[t]=function(e,r){return this.request(ut(r||{},{method:t,url:e,data:(r||{}).data}))}})),U.forEach(["post","put","patch"],(function(t){function e(e){return function(r,n,o){return this.request(ut(o||{},{method:t,headers:e?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}mt.prototype[t]=e(),mt.prototype[t+"Form"]=e(!0)}));var vt=mt;function gt(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise((function(t){e=t}));var r=this;this.promise.then((function(t){if(r._listeners){var e,n=r._listeners.length;for(e=0;e<n;e++)r._listeners[e](t);r._listeners=null}})),this.promise.then=function(t){var e,n=new Promise((function(t){r.subscribe(t),e=t})).then(t);return n.cancel=function(){r.unsubscribe(e)},n},t((function(t){r.reason||(r.reason=new tt(t),e(r.reason))}))}gt.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},gt.prototype.subscribe=function(t){this.reason?t(this.reason):this._listeners?this._listeners.push(t):this._listeners=[t]},gt.prototype.unsubscribe=function(t){if(this._listeners){var e=this._listeners.indexOf(t);-1!==e&&this._listeners.splice(e,1)}},gt.source=function(){var t;return{token:new gt((function(e){t=e})),cancel:t}};var wt=gt,bt=function t(e){var r=new vt(e),n=b(vt.prototype.request,r);return U.extend(n,vt.prototype,r),U.extend(n,r),n.create=function(r){return t(ut(e,r))},n}(it);bt.Axios=vt,bt.CanceledError=tt,bt.CancelToken=wt,bt.isCancel=st,bt.VERSION="0.27.2",bt.toFormData=W,bt.AxiosError=X,bt.Cancel=bt.CanceledError,bt.all=function(t){return Promise.all(t)},bt.spread=function(t){return function(e){return t.apply(null,e)}},bt.isAxiosError=function(t){return U.isObject(t)&&!0===t.isAxiosError};var yt=bt;yt.default=bt;var xt=yt;const Ct={list:[],keys:[],locs:[],loading:!1,solved:!1,error:void 0,pick:void 0,data:void 0},{state:kt}=(()=>{const t=((t,e=((t,e)=>t!==e))=>{const r=g(t);let n=new Map(Object.entries(null!=r?r:{}));const o={dispose:[],get:[],set:[],reset:[]},i=()=>{var e;n=new Map(Object.entries(null!==(e=g(t))&&void 0!==e?e:{})),o.reset.forEach((t=>t()))},a=t=>(o.get.forEach((e=>e(t))),n.get(t)),s=(t,r)=>{const i=n.get(t);e(r,i,t)&&(n.set(t,r),o.set.forEach((e=>e(t,r,i))))},l="undefined"==typeof Proxy?{}:new Proxy(r,{get:(t,e)=>a(e),ownKeys:()=>Array.from(n.keys()),getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0}),has:(t,e)=>n.has(e),set:(t,e,r)=>(s(e,r),!0)}),c=(t,e)=>(o[t].push(e),()=>{((t,e)=>{const r=t.indexOf(e);r>=0&&(t[r]=t[t.length-1],t.length--)})(o[t],e)});return{state:l,get:a,set:s,on:c,onChange:(e,r)=>{const n=c("set",((t,n)=>{t===e&&r(n)})),o=c("reset",(()=>r(g(t)[e])));return()=>{n(),o()}},use:(...t)=>{const e=t.reduce(((t,e)=>(e.set&&t.push(c("set",e.set)),e.get&&t.push(c("get",e.get)),e.reset&&t.push(c("reset",e.reset)),e.dispose&&t.push(c("dispose",e.dispose)),t)),[]);return()=>e.forEach((t=>t()))},dispose:()=>{o.dispose.forEach((t=>t())),i()},reset:i,forceUpdate:t=>{const e=n.get(t);o.set.forEach((r=>r(t,e,e)))}}})(Ct,void 0);return t.use((()=>{if("function"!=typeof e)return{};const t=new Map;return{dispose:()=>t.clear(),get:r=>{const n=e();n&&((t,e,r)=>{const n=t.get(e);n?n.includes(r)||n.push(r):t.set(e,[r])})(t,r,n)},set:e=>{const n=t.get(e);n&&t.set(e,n.filter(r)),v(t)},reset:()=>{t.forEach((t=>t.forEach(r))),v(t)}}})()),t})(),Ot=new Map([["row",new Map],["column",new Map],["box",new Map]]),Rt=["1","2","3","4","5","6","7","8","9"],Et=t=>{if(void 0!==t&&t.indx!=kt.pick){const{isClue:e,indx:r,row:n,column:o,box:i}=t,a=((t,e,r,n)=>{const o=new Map([["row",e],["column",r],["box",n]]),i=new Set;return o.forEach(((e,r)=>{Ot.get(r).get(e).forEach((e=>{e!==t&&i.add(e)}))})),Array.from(i)})(r,n,o,i),s=e?[]:(t=>{const{list:e}=kt,r=new Set;return t.map((t=>{const{key:n}=e[t];"."!=n&&r.add(n)})),Rt.filter((t=>!r.has(t)))})(a);kt.pick=r,kt.keys=s,kt.locs=a}else kt.pick=void 0,kt.keys=[],kt.locs=[];St(kt.pick)},jt=xt.create({baseURL:"https://sudoku-rust-api.vercel.app/api/",timeout:1e4,headers:{"X-Custom-Header":"foobar"}}),At=t=>{d(t)},St=t=>{h(t)},Nt=(t=!1)=>{kt.list=[],kt.keys=[],kt.locs=[],kt.loading=t,kt.solved=!1,kt.error=void 0,kt.pick=void 0,kt.data=void 0},Mt=(t,e=!0)=>{const{puzzle:r,ref:n}=t;e&&(d([]),u(a,t)),(t=>{if(t){const{puzzle:e,ref:r}=t,n=e?[...e]:[],o=r?atob(r):void 0,i=o?[...o]:[],a=n.map(((t,e)=>{const r=i[e],n=t===r,o=Math.floor(e/9),a=e%9,s=((t,e)=>e<3?t<3?0:t<6?3:6:e<6?t<3?1:t<6?4:7:t<3?2:t<6?5:8)(o,a);return((t,e,r,n)=>{new Map([["row",e],["column",r],["box",n]]).forEach(((e,r)=>{const n=Ot.get(r);n.has(e)?n.get(e).add(t):n.set(e,new Set([t]))}))})(e,o,a,s),{key:t,isClue:n,value:r,indx:e,row:o,column:a,box:s}}));(t=>{f().forEach(((e,r)=>{const n=t[r],{isClue:o}=n;o||(n.key=e)}))})(a),kt.data=t,kt.list=a}else kt.data=void 0,kt.list=[]})({puzzle:r,ref:n})},zt=t=>{kt.list=[...t],t.length=0},Bt={initApp:()=>{Nt();const t=c(a),e=p();if(t&&(Mt(t,!1),e>=0)){const{list:t}=kt;Et(t[e])}},refresh:()=>{Nt(!0),At([]),St(kt.pick),jt.get("/puzzle").then((({data:t})=>{Mt(t)})).catch((t=>{const{message:e}=t;console.log("-- ",e),console.log(t),kt.error=e})).then((()=>{kt.loading=!1}))},select:t=>{Et(t)},check:()=>{const{list:t}=kt,e=[];let r=0,n=0,o=0;t.forEach((t=>{const{key:i,value:a,isClue:s}=t;s?o+=1:"."!==i&&(i!==a?(r+=1,t.key="."):n+=1),e.push(t.key)}));const i=o+n;At(n?e:[]),r>0?zt(t):81===i&&(kt.solved=!0)},input:t=>{const{pick:e,list:r}=kt;r[e].key=t,zt(r)}},Tt=(...t)=>t.filter(Boolean).join(" "),Pt=e=>{const r=e.hex||"currentColor",n=e.label||"loading...",o=e.size||24;return t("svg",{class:Tt(e.class||"","animate-spin"),width:o,height:o,fill:"none",viewBox:"0 0 24 24",role:"img","aria-label":"title"},t("title",null,n),t("g",null,t("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:r,"stroke-width":"4"}),t("path",{class:"opacity-75",fill:r,d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})),t("path",{d:"M0 0h24v24H0z",fill:"none"}))},Dt=e=>{const{message:r,salute:n,spinner:i=!1}=e;return t("div",{class:"mt-5 flex h-24px flex-row items-center"},t(i?Pt:o,{class:"mr-2"}),n?t("label",{class:"mr-1 font-bold"},n,":"):"",t("label",{class:"italic"},r))},Ut=()=>{const{solved:e,loading:r,error:n}=kt;return t("div",{class:"flex flex-col"},r||n||e?"":t(Dt,{message:"Welcome, are you ready to play?..."}),r?t(Dt,{message:"Loading...",spinner:!0}):"",n?t(Dt,{message:n,salute:"ERROR"}):"",e?t(Dt,{message:"You solved the puzzle!!"}):"")},_t=e=>{const r=e.hex||"currentColor",n=e.size||24;return t("svg",{class:e.class,width:n,height:n,viewBox:"0 0 24 24",role:"img","aria-label":"title"},t("title",null,e.label||"fingerprint"),t("g",{fill:r},t("path",{d:"M17.81,4.47C17.73,4.47 17.65,4.45 17.58,4.41C15.66,3.42 14,3\n 12,3C10.03,3 8.15,3.47 6.44,4.41C6.2,4.54 5.9,4.45 5.76,4.21C5.63,3.97\n 5.72,3.66 5.96,3.53C7.82,2.5 9.86,2 12,2C14.14,2 16,2.47\n 18.04,3.5C18.29,3.65 18.38,3.95 18.25,4.19C18.16,4.37 18,4.47\n 17.81,4.47M3.5,9.72C3.4,9.72 3.3,9.69 3.21,9.63C3,9.47 2.93,9.16\n 3.09,8.93C4.08,7.53 5.34,6.43 6.84,5.66C10,4.04 14,4.03\n 17.15,5.65C18.65,6.42 19.91,7.5 20.9,8.9C21.06,9.12 21,9.44\n 20.78,9.6C20.55,9.76 20.24,9.71 20.08,9.5C19.18,8.22 18.04,7.23\n 16.69,6.54C13.82,5.07 10.15,5.07 7.29,6.55C5.93,7.25 4.79,8.25\n 3.89,9.5C3.81,9.65 3.66,9.72 3.5,9.72M9.75,21.79C9.62,21.79 9.5,21.74\n 9.4,21.64C8.53,20.77 8.06,20.21 7.39,19C6.7,17.77 6.34,16.27\n 6.34,14.66C6.34,11.69 8.88,9.27 12,9.27C15.12,9.27 17.66,11.69\n 17.66,14.66A0.5,0.5 0 0,1 17.16,15.16A0.5,0.5 0 0,1\n 16.66,14.66C16.66,12.24 14.57,10.27 12,10.27C9.43,10.27 7.34,12.24\n 7.34,14.66C7.34,16.1 7.66,17.43 8.27,18.5C8.91,19.66 9.35,20.15\n 10.12,20.93C10.31,21.13 10.31,21.44 10.12,21.64C10,21.74 9.88,21.79\n 9.75,21.79M16.92,19.94C15.73,19.94 14.68,19.64 13.82,19.05C12.33,18.04\n 11.44,16.4 11.44,14.66A0.5,0.5 0 0,1 11.94,14.16A0.5,0.5 0 0,1\n 12.44,14.66C12.44,16.07 13.16,17.4 14.38,18.22C15.09,18.7 15.92,18.93\n 16.92,18.93C17.16,18.93 17.56,18.9 17.96,18.83C18.23,18.78 18.5,18.96\n 18.54,19.24C18.59,19.5 18.41,19.77 18.13,19.82C17.56,19.93 17.06,19.94\n 16.92,19.94M14.91,22C14.87,22 14.82,22 14.78,22C13.19,21.54 12.15,20.95\n 11.06,19.88C9.66,18.5 8.89,16.64 8.89,14.66C8.89,13.04 10.27,11.72\n 11.97,11.72C13.67,11.72 15.05,13.04 15.05,14.66C15.05,15.73 16,16.6\n 17.13,16.6C18.28,16.6 19.21,15.73 19.21,14.66C19.21,10.89 15.96,7.83\n 11.96,7.83C9.12,7.83 6.5,9.41 5.35,11.86C4.96,12.67 4.76,13.62\n 4.76,14.66C4.76,15.44 4.83,16.67 5.43,18.27C5.53,18.53 5.4,18.82\n 5.14,18.91C4.88,19 4.59,18.87 4.5,18.62C4,17.31 3.77,16\n 3.77,14.66C3.77,13.46 4,12.37 4.45,11.42C5.78,8.63 8.73,6.82\n 11.96,6.82C16.5,6.82 20.21,10.33 20.21,14.65C20.21,16.27 18.83,17.59\n 17.13,17.59C15.43,17.59 14.05,16.27 14.05,14.65C14.05,13.58 13.12,12.71\n 11.97,12.71C10.82,12.71 9.89,13.58 9.89,14.65C9.89,16.36 10.55,17.96\n 11.76,19.16C12.71,20.1 13.62,20.62 15.03,21C15.3,21.08 15.45,21.36\n 15.38,21.62C15.33,21.85 15.12,22 14.91,22Z"})),t("path",{d:"M0 0h24v24H0z",fill:"none"}))},Ft="eswat2",Lt=()=>t("a",{class:"absolute top-0 right-0 text-clrs-gray hover:text-clrs-navy",href:"https://eswat2.dev","aria-label":Ft,title:Ft},t(_t,{label:Ft})),Ht=(e,r)=>t("h1",{class:Tt("text-center uppercase text-clrs-red","mr-0 ml-0 mt-11 mb-11","text-6xl font-thin")},r),Jt=e=>{const{label:r,callback:n,matched:o=!1}=e;return t("button",{class:Tt("rounded-md border border-solid border-clrs-slate4 font-bold","Check ?"===r?"mr-2 bg-clrs-yellow px-3 py-2 text-clrs-navy":"New Puzzle"===r?"mr-2 bg-clrs-navy px-3 py-2 text-white":"x"===r?"mr-1 bg-clrs-red px-2 py-1 text-white":o?"mr-1 bg-clrs-slate4 px-2 py-1 text-white":"mr-1 bg-gray-50 px-2 py-1 text-clrs-navy"),onClick:n},r)},It=()=>{const{keys:e,list:r,pick:n,solved:o}=kt,i=t=>()=>{Bt.input(t)},a=o?[]:e,s=null!=n?r[n]:void 0;return t("div",{class:"mt-2 flex flex-row justify-end"},o||!s||s.isClue||"."==s.key?"":t(Jt,{label:"x",callback:i(".")}),a.map((e=>t(Jt,{label:e,callback:i(e),matched:s.key===e}))))},qt=[2,5,11,14,20,23,29,32,38,41,47,50,56,59,65,68,74,77],$t=qt.map((t=>t+1)),Xt=[18,19,20,21,22,23,24,25,26,45,46,47,48,49,50,51,52,53],Kt=Xt.map((t=>t+9)),Wt=e=>{const{cell:r,selected:n,ref:o,solved:i}=e,{key:a,isClue:s,indx:l}=r,c="."!=a?a:"";return t("label",{class:Tt(`cell-${l}`,qt.includes(l)?"border-xbr-clrs-navy":"",$t.includes(l)?"border-xbl-clrs-navy":"",Xt.includes(l)?"border-xbb-clrs-navy":"",Kt.includes(l)?"border-xbt-clrs-navy":"","h-8 w-8 border border-solid text-center leading-8",n?"border-clrs-red bg-clrs-red-a50 text-clrs-red":o?"border-clrs-gray bg-clrs-green-a50 font-bold":s?"border-clrs-gray bg-clrs-silver":""!==c?"border-clrs-gray text-clrs-red":"border-clrs-gray"),onClick:((t,e)=>()=>{e||Bt.select(t)})(r,i)},c)},Vt=()=>{const{list:e,pick:r,locs:n,solved:o}=kt;return t("div",{class:Tt("flex flex-row flex-wrap","border border-solid border-clrs-navy","h-76p5 w-76p5 text-lg")},e.map(((e,i)=>{const a=!o&&i===r,s=!o&&n.includes(i);return t(Wt,{cell:e,selected:a,ref:s,solved:o})})))},Yt=()=>t("label",{class:"ml-auto align-top text-xs italic text-clrs-slate4"},"Tailwind ","3.1.8"),Zt=t=>()=>{t.refresh()},Qt=t=>()=>{t.check()},Gt=()=>{const{list:e,solved:r}=kt;return t("div",{class:"flex flex-row"},t(Jt,{label:"New Puzzle",callback:Zt(Bt)}),81!==e.length||r?"":t(Jt,{label:"Check ?",callback:Qt(Bt)}),t(Yt,null))},te=class{constructor(t){n(this,t),this.tag="proto-sudoku"}componentDidLoad(){Bt.initApp()}render(){return t("div",{id:"app",class:"ds1-main relative max-w-min p-0.5"},t(Lt,null),t(Ht,null,"Sudoku"),t(Vt,null),t(It,null),t("hr",{class:"ml-0 mr-0"}),t(Gt,null),t(Ut,null))}};te.style="*,::before,::after{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scroll-snap-strictness:proximity;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgb(59 130 246 / 0.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;}::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scroll-snap-strictness:proximity;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgb(59 130 246 / 0.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;}.ds1-main{margin:1.5rem;display:flex;flex-direction:column;font-family:ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,\n 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif,\n 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';color:var(--clrs-navy, #001f3f);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.absolute{position:absolute}.relative{position:relative}.top-0{top:0px}.right-0{right:0px}.mt-5{margin-top:1.25rem}.mr-2{margin-right:0.5rem}.mr-1{margin-right:0.25rem}.mr-0{margin-right:0px}.ml-0{margin-left:0px}.mt-11{margin-top:2.75rem}.mb-11{margin-bottom:2.75rem}.mt-2{margin-top:0.5rem}.ml-auto{margin-left:auto}.flex{display:flex}.h-24px{height:24px}.h-8{height:2rem}.h-76p5{height:19.125rem}.w-8{width:2rem}.w-76p5{width:19.125rem}.max-w-min{max-width:-moz-min-content;max-width:min-content}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.justify-end{justify-content:flex-end}.rounded-md{border-radius:0.375rem}.border{border-width:1px}.border-solid{border-style:solid}.border-clrs-slate4{border-color:var(--clrs-slate4, #4e5964)}.border-clrs-red{border-color:var(--clrs-red, #ff4136)}.border-clrs-gray{border-color:var(--clrs-gray, #aaaaaa)}.border-clrs-navy{border-color:var(--clrs-navy, #001f3f)}.bg-clrs-yellow{background-color:var(--clrs-yellow, #ffdc00)}.bg-clrs-navy{background-color:var(--clrs-navy, #001f3f)}.bg-clrs-red{background-color:var(--clrs-red, #ff4136)}.bg-clrs-slate4{background-color:var(--clrs-slate4, #4e5964)}.bg-gray-50{--tw-bg-opacity:1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.bg-clrs-red-a50{background-color:var(--clrs-red-a50, #ff413650)}.bg-clrs-green-a50{background-color:var(--clrs-green-a50, #2ecc4050)}.bg-clrs-silver{background-color:var(--clrs-silver, #dddddd)}.p-0\\.5{padding:0.125rem}.p-0{padding:0px}.px-3{padding-left:0.75rem;padding-right:0.75rem}.py-2{padding-top:0.5rem;padding-bottom:0.5rem}.px-2{padding-left:0.5rem;padding-right:0.5rem}.py-1{padding-top:0.25rem;padding-bottom:0.25rem}.text-center{text-align:center}.align-top{vertical-align:top}.text-6xl{font-size:3.75rem;line-height:1}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-xs{font-size:0.75rem;line-height:1rem}.font-bold{font-weight:700}.font-thin{font-weight:100}.uppercase{text-transform:uppercase}.italic{font-style:italic}.leading-8{line-height:2rem}.text-clrs-navy{color:var(--clrs-navy, #001f3f)}.text-white{--tw-text-opacity:1;color:rgb(255 255 255 / var(--tw-text-opacity))}.text-clrs-red{color:var(--clrs-red, #ff4136)}.text-clrs-gray{color:var(--clrs-gray, #aaaaaa)}.text-clrs-slate4{color:var(--clrs-slate4, #4e5964)}.opacity-25{opacity:0.25}.opacity-75{opacity:0.75}.shadow{--tw-shadow:0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),\n 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),\n var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.border-xbb-clrs-navy{border-bottom:1px solid var(--clrs-navy, #001f3f) !important}.border-xbt-clrs-navy{border-top:1px solid var(--clrs-navy, #001f3f) !important}.border-xbl-clrs-navy{border-left:1px solid var(--clrs-navy, #001f3f) !important}.border-xbr-clrs-navy{border-right:1px solid var(--clrs-navy, #001f3f) !important}.hover\\:text-clrs-navy:hover{color:var(--clrs-navy, #001f3f)}";export{te as proto_sudoku}
|
@@ -1 +1 @@
|
|
1
|
-
import{p as o,b as p}from"./p-3561d2f7.js";(()=>{const p=import.meta.url,r={};return""!==p&&(r.resourcesUrl=new URL(".",p).href),o(r)})().then((o=>p([["p-
|
1
|
+
import{p as o,b as p}from"./p-3561d2f7.js";(()=>{const p=import.meta.url,r={};return""!==p&&(r.resourcesUrl=new URL(".",p).href),o(r)})().then((o=>p([["p-e3accc5e",[[1,"proto-sudoku",{tag:[1]}]]]],o)));
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "proto-sudoku-wc",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.476",
|
4
4
|
"description": "prototype - a simple Sudoku app rendered in Stencil and Tailwind",
|
5
5
|
"main": "dist/index.cjs.js",
|
6
6
|
"module": "dist/index.js",
|
@@ -42,7 +42,7 @@
|
|
42
42
|
"concurrently": "7.4.0",
|
43
43
|
"cspell": "6.10.1",
|
44
44
|
"cssnano": "5.1.13",
|
45
|
-
"eslint": "8.
|
45
|
+
"eslint": "8.24.0",
|
46
46
|
"jest": "29.0.3",
|
47
47
|
"postcss": "8.4.16",
|
48
48
|
"prettier": "2.7.1",
|